dynamic plugin system, toast notifications, board delete, gitea-sync plugin rewrite, granular locking fixes
This commit is contained in:
@@ -459,3 +459,34 @@ model EditHistory {
|
||||
@@index([postId, createdAt])
|
||||
@@index([commentId, createdAt])
|
||||
}
|
||||
|
||||
model Plugin {
|
||||
id String @id @default(cuid())
|
||||
name String @unique
|
||||
version String
|
||||
description String?
|
||||
author String?
|
||||
enabled Boolean @default(false)
|
||||
dirPath String
|
||||
entryPoint String @default("index.js")
|
||||
config Json @default("{}")
|
||||
configSchema Json @default("[]")
|
||||
installedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
data PluginData[]
|
||||
}
|
||||
|
||||
model PluginData {
|
||||
id String @id @default(cuid())
|
||||
pluginId String
|
||||
key String
|
||||
value Json
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
plugin Plugin @relation(fields: [pluginId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([pluginId, key])
|
||||
@@index([pluginId])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user