mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 00:02:37 +10:00
22 lines
446 B
Plaintext
22 lines
446 B
Plaintext
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?
|
|
}
|