// This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client-js" previewFeatures = ["postgresqlExtensions"] } datasource db { provider = "postgresql" url = env("DATABASE_URL") extensions = [pgcrypto] } model User { id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid username String @unique name String Todo Todo[] @@map("account") } model Todo { id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid name String user User @relation(fields: [userId], references: [id]) userId String @map("user_id") @db.Uuid @@map("todo") }