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", "storybook": "storybook dev -p 6006",
"build-storybook": "storybook build", "build-storybook": "storybook build",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"prisma:push": "prisma db push",
"prisma:format": "prisma format",
"prisma:generate": "prisma generate", "prisma:generate": "prisma generate",
"prisma:dev": "prisma migrate dev", "prisma:reset": "prisma migrate reset --force",
"prisma:studio": "prisma studio" "prisma:studio": "prisma studio"
}, },
"devDependencies": { "devDependencies": {
@ -57,7 +59,7 @@
}, },
"dependencies": { "dependencies": {
"@flaticon/flaticon-uicons": "^3.3.1", "@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/core": "^4.3.0",
"@pothos/plugin-prisma": "^4.4.0", "@pothos/plugin-prisma": "^4.4.0",
"@prisma/client": "6.0.1", "@prisma/client": "6.0.1",
@ -72,4 +74,4 @@
"tailwind-merge": "^2.5.5", "tailwind-merge": "^2.5.5",
"zod": "^3.24.0" "zod": "^3.24.0"
} }
} }

View file

@ -15,34 +15,38 @@ datasource db {
} }
model User { model User {
id String @id @default(uuid()) id String @id @default(uuid())
email String? @unique
name String email String? @unique
password String name String
posts Post[] password String
sessions Session[] posts Post[]
sessions Session[]
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt updatedAt DateTime @default(now()) @updatedAt
} }
model Session { model Session {
id String @id @default(uuid()) id String @id @default(uuid())
expiresAt DateTime
createdAt DateTime @default(now()) expiresAt DateTime
updatedAt DateTime @default(now()) @updatedAt user User @relation(references: [id], fields: [userId])
userId String userId String
user User @relation(references: [id], fields: [userId])
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
} }
model Post { model Post {
id String @id @default(uuid()) id String @id @default(uuid())
title String title String
content String content String
published Boolean? @default(false) published Boolean? @default(false)
author User @relation(references: [id], fields: [authorId]) author User @relation(references: [id], fields: [authorId])
authorId String authorId String
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt updatedAt DateTime @default(now()) @updatedAt
} }