model NewsTag {
  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 NewsTag[]

  imageObjectId String? // Object ID
  publishedAt   DateTime @default(now())

  author   User?   @relation(fields: [authorId], references: [id], onDelete: Cascade) // Optional, if no user, it's a system post
  authorId String?
}
