Daisy UI #14

Merged
BenjaminPalko merged 28 commits from daisy-ui into master 2024-12-19 21:20:21 -05:00
2 changed files with 24 additions and 18 deletions
Showing only changes of commit e5c0c4cf4c - Show all commits

View file

@ -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": {

View file

@ -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
}