diff --git a/prisma/schema/news.prisma b/prisma/schema/news.prisma new file mode 100644 index 0000000..dd2bde6 --- /dev/null +++ b/prisma/schema/news.prisma @@ -0,0 +1,13 @@ +model News { + id String @id @default(uuid()) + title String + content String @db.Text + excerpt String + tags String[] + image String? + publishedAt DateTime @default(now()) + author User @relation(fields: [authorId], references: [id]) + authorId String + + @@map("news") +}