mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 07:42:40 +10:00
* #86 Adds delete user functionality in admin panel * Removes unnecessary code * Prevents current user from deleting itself
23 lines
487 B
Plaintext
23 lines
487 B
Plaintext
model Tag {
|
|
id String @id @default(uuid())
|
|
name String @unique
|
|
|
|
articles Article[]
|
|
games Game[]
|
|
}
|
|
|
|
model Article {
|
|
id String @id @default(uuid())
|
|
title String
|
|
description String
|
|
content String @db.Text
|
|
|
|
tags Tag[]
|
|
|
|
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?
|
|
}
|