From 623ab7d786ebd7dd1538910b422c574a1f96b613 Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sun, 2 Feb 2025 10:17:21 +1030 Subject: [PATCH] feat(DB): Updated DB for news articles to be stored in the DB --- prisma/schema/news.prisma | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 prisma/schema/news.prisma 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") +}