feat: add advisor/contact flow tables and make Blog.authorId required
Deploy Canina / deploy (push) Successful in 25m44s

This commit is contained in:
devops committed 2026-11-05 08:33:30 +00:00
1 parent bb81f2c944
commit d881dc491e
86 files changed
+507 -4111

No files matched your search

+2 -2
View File
@@ -178,7 +178,7 @@ model Blog {
slug String @unique @db.VarChar(200)
content String @db.Text
excerpt String? @db.Text
authorId String? @map("author_id") @db.Uuid
authorId String @map("author_id") @db.Uuid
categoryId String? @map("category_id") @db.Uuid
imageUrl String? @map("image_url") @db.Text
imageAlt String? @map("image_alt") @db.VarChar(255)
@@ -209,7 +209,7 @@ model Blog {
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz()
updatedAt DateTime @default(now()) @updatedAt @map("updated_at") @db.Timestamptz()
author User? @relation(fields: [authorId], references: [id])
author User @relation(fields: [authorId], references: [id])
category BlogCategory? @relation(fields: [categoryId], references: [id], onDelete: SetNull)
tags BlogTag[]
comments BlogComment[]