feat(noc): integrate DocumentStat model and sync with external NOC API
This commit is contained in:
@@ -107,6 +107,19 @@ model Document {
|
||||
@@map("document")
|
||||
}
|
||||
|
||||
model DocumentStat {
|
||||
id String @id @default(cuid())
|
||||
villageId String @default("desa1")
|
||||
label String
|
||||
value Int @default(0)
|
||||
color String
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([villageId, label])
|
||||
@@map("document_stat")
|
||||
}
|
||||
|
||||
model Discussion {
|
||||
id String @id @default(cuid())
|
||||
externalId String? @unique // ID asli dari server NOC
|
||||
|
||||
Reference in New Issue
Block a user