fix: relation constraits
This commit is contained in:
parent
492f05a2ca
commit
f0392c12a6
1 changed files with 3 additions and 3 deletions
|
|
@ -754,7 +754,7 @@ model EmployeePassport {
|
|||
issuePlace String
|
||||
previousPassportRef String?
|
||||
|
||||
employee Employee @relation(fields: [employeeId], references: [id])
|
||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
|
@ -774,7 +774,7 @@ model EmployeeVisa {
|
|||
mrz String?
|
||||
remark String?
|
||||
|
||||
employee Employee @relation(fields: [employeeId], references: [id])
|
||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
|
@ -793,7 +793,7 @@ model EmployeeInCountryNotice {
|
|||
travelBy String
|
||||
travelFrom String
|
||||
|
||||
employee Employee @relation(fields: [employeeId], references: [id])
|
||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue