feat: add relation businessType
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
fc22c38472
commit
463a3cafd8
2 changed files with 14 additions and 1 deletions
|
|
@ -789,6 +789,7 @@ model BusinessType {
|
|||
updatedByUserId String?
|
||||
|
||||
customerBranch CustomerBranch[]
|
||||
employeeWork EmployeeWork[]
|
||||
}
|
||||
|
||||
model Employee {
|
||||
|
|
@ -965,7 +966,6 @@ model EmployeeWork {
|
|||
|
||||
ownerName String?
|
||||
positionName String?
|
||||
businessTypeId String?
|
||||
workplace String?
|
||||
identityNo String?
|
||||
workPermitNo String?
|
||||
|
|
@ -973,6 +973,9 @@ model EmployeeWork {
|
|||
workPermitExpireDate DateTime? @db.Date
|
||||
workPermitAt String?
|
||||
|
||||
businessType BusinessType? @relation(fields: [businessTypeId], references: [id], onDelete: SetNull)
|
||||
businessTypeId String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
createdBy User? @relation(name: "EmployeeWorkCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
|
||||
createdByUserId String?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue