refactor: change relationship
This commit is contained in:
parent
0bd3ce55a7
commit
2ed718ccd0
3 changed files with 14 additions and 4 deletions
|
|
@ -545,7 +545,7 @@ model Employee {
|
|||
|
||||
employeeCheckup EmployeeCheckup[]
|
||||
employeeWork EmployeeWork[]
|
||||
employeeOtherInfo EmployeeOtherInfo[]
|
||||
employeeOtherInfo EmployeeOtherInfo?
|
||||
|
||||
editHistory EmployeeHistory[]
|
||||
quotationWorker QuotationWorker[]
|
||||
|
|
@ -620,7 +620,7 @@ model EmployeeOtherInfo {
|
|||
id String @id @default(uuid())
|
||||
|
||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
employeeId String @unique
|
||||
|
||||
citizenId String?
|
||||
fatherBirthPlace String?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue