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": {
@ -57,7 +59,7 @@
},
"dependencies": {
"@flaticon/flaticon-uicons": "^3.3.1",
"@lucia-auth/adapter-prisma": "^4.0.1",
"@lucia-auth/adapter-prisma": "^4.0.1",
"@pothos/core": "^4.3.0",
"@pothos/plugin-prisma": "^4.4.0",
"@prisma/client": "6.0.1",
@ -72,4 +74,4 @@
"tailwind-merge": "^2.5.5",
"zod": "^3.24.0"
}
}
}

View file

@ -15,34 +15,38 @@ datasource db {
}
model User {
id String @id @default(uuid())
email String? @unique
name String
password String
posts Post[]
sessions Session[]
id String @id @default(uuid())
email String? @unique
name String
password String
posts Post[]
sessions Session[]
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
}
model Session {
id String @id @default(uuid())
expiresAt DateTime
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
userId String
user User @relation(references: [id], fields: [userId])
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
}
model Post {
id String @id @default(uuid())
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
}
}