fix: prisma migrations in docker

i hate prisma so so so so so much
This commit is contained in:
DecDuck
2025-04-20 18:12:29 +10:00
parent ec6d38d7af
commit 0a270b267c
12 changed files with 49 additions and 50 deletions

21
prisma/news.prisma Normal file
View File

@ -0,0 +1,21 @@
model Tag {
id String @id @default(uuid())
name String @unique
articles Article[]
}
model Article {
id String @id @default(uuid())
title String
description String
content String @db.Text
tags Tag[]
image String? // Object ID
publishedAt DateTime @default(now())
author User? @relation(fields: [authorId], references: [id]) // Optional, if no user, it's a system post
authorId String?
}