feat: add institution table
This commit is contained in:
parent
acec119845
commit
10e64b13a8
1 changed files with 27 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ model Province {
|
|||
employeeCheckup EmployeeCheckup[]
|
||||
customerBranchCitizen CustomerBranchCitizen[]
|
||||
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||
institution Institution[]
|
||||
}
|
||||
|
||||
model District {
|
||||
|
|
@ -184,6 +185,7 @@ model District {
|
|||
employee Employee[]
|
||||
CustomerBranchCitizen CustomerBranchCitizen[]
|
||||
CustomerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||
institution Institution[]
|
||||
}
|
||||
|
||||
model SubDistrict {
|
||||
|
|
@ -206,6 +208,7 @@ model SubDistrict {
|
|||
employee Employee[]
|
||||
customerBranchCitizen CustomerBranchCitizen[]
|
||||
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||
institution Institution[]
|
||||
}
|
||||
|
||||
enum Status {
|
||||
|
|
@ -926,6 +929,30 @@ model EmployeeOtherInfo {
|
|||
updatedByUserId String?
|
||||
}
|
||||
|
||||
model Institution {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
|
||||
address String
|
||||
addressEN String
|
||||
|
||||
soi String?
|
||||
soiEN String?
|
||||
moo String?
|
||||
mooEN String?
|
||||
street String?
|
||||
streetEN String?
|
||||
|
||||
province Province @relation(fields: [provinceId], references: [id], onDelete: Cascade)
|
||||
provinceId String
|
||||
|
||||
district District @relation(fields: [districtId], references: [id], onDelete: Cascade)
|
||||
districtId String
|
||||
|
||||
subDistrict SubDistrict @relation(fields: [subDistrictId], references: [id], onDelete: Cascade)
|
||||
subDistrictId String
|
||||
}
|
||||
|
||||
model WorkflowTemplate {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue