feat: add property management endpoint

This commit is contained in:
Methapon2001 2025-03-10 15:12:30 +07:00
parent e6903af8ce
commit 140cb59ebb
3 changed files with 206 additions and 0 deletions

View file

@ -318,6 +318,7 @@ model Branch {
workflowTemplate WorkflowTemplate[]
taskOrder TaskOrder[]
notification Notification[]
property Property[]
}
model BranchBank {
@ -1004,6 +1005,23 @@ model Institution {
taskOrder TaskOrder[]
}
model Property {
id String @id @default(cuid())
registeredBranch Branch @relation(fields: [registeredBranchId], references: [id])
registeredBranchId String
name String
nameEN String
type Json
status Status @default(CREATED)
statusOrder Int @default(0)
createdAt DateTime @default(now())
}
model WorkflowTemplate {
id String @id @default(cuid())
name String