need postgres explanation
do I have to start my own server for my postgres database with user and password and run in alongside my next app to be able to connect to it with
?
?
import * as courses from '@/db/schema/courses'
import * as studentsCourses from '@/db/schema/courses-students'
import * as users from '@/db/schema/users'
import { drizzle } from 'drizzle-orm/node-postgres'
import { Client } from 'pg'
const client = new Client({
connectionString: `postgres://user:password@host:port/db`,
})
export const db = drizzle(client, {
schema: {
...users,
...courses,
...studentsCourses,
},
})