Daisy UI #14
2 changed files with 24 additions and 18 deletions
|
|
@ -15,8 +15,10 @@
|
|||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build",
|
||||
"test:e2e": "playwright test",
|
||||
"prisma:push": "prisma db push",
|
||||
"prisma:format": "prisma format",
|
||||
"prisma:generate": "prisma generate",
|
||||
"prisma:dev": "prisma migrate dev",
|
||||
"prisma:reset": "prisma migrate reset --force",
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ datasource db {
|
|||
|
||||
model User {
|
||||
id String @id @default(uuid())
|
||||
|
||||
email String? @unique
|
||||
name String
|
||||
password String
|
||||
|
|
@ -28,21 +29,24 @@ model User {
|
|||
|
||||
model Session {
|
||||
id String @id @default(uuid())
|
||||
|
||||
expiresAt DateTime
|
||||
user User @relation(references: [id], fields: [userId])
|
||||
userId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
userId String
|
||||
user User @relation(references: [id], fields: [userId])
|
||||
}
|
||||
|
||||
|
||||
model Post {
|
||||
id String @id @default(uuid())
|
||||
|
||||
title String
|
||||
content String
|
||||
published Boolean? @default(false)
|
||||
author User @relation(references: [id], fields: [authorId])
|
||||
authorId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue