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[]
|
employeeCheckup EmployeeCheckup[]
|
||||||
customerBranchCitizen CustomerBranchCitizen[]
|
customerBranchCitizen CustomerBranchCitizen[]
|
||||||
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||||
|
institution Institution[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model District {
|
model District {
|
||||||
|
|
@ -184,6 +185,7 @@ model District {
|
||||||
employee Employee[]
|
employee Employee[]
|
||||||
CustomerBranchCitizen CustomerBranchCitizen[]
|
CustomerBranchCitizen CustomerBranchCitizen[]
|
||||||
CustomerBranchHouseRegis CustomerBranchHouseRegis[]
|
CustomerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||||
|
institution Institution[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model SubDistrict {
|
model SubDistrict {
|
||||||
|
|
@ -206,6 +208,7 @@ model SubDistrict {
|
||||||
employee Employee[]
|
employee Employee[]
|
||||||
customerBranchCitizen CustomerBranchCitizen[]
|
customerBranchCitizen CustomerBranchCitizen[]
|
||||||
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
customerBranchHouseRegis CustomerBranchHouseRegis[]
|
||||||
|
institution Institution[]
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Status {
|
enum Status {
|
||||||
|
|
@ -926,6 +929,30 @@ model EmployeeOtherInfo {
|
||||||
updatedByUserId String?
|
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 {
|
model WorkflowTemplate {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
name String
|
name String
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue