feat: employee history
This commit is contained in:
parent
8ac2527217
commit
3e3d2cf01c
2 changed files with 47 additions and 0 deletions
|
|
@ -472,6 +472,20 @@ model Employee {
|
|||
employeeCheckup EmployeeCheckup[]
|
||||
employeeWork EmployeeWork[]
|
||||
employeeOtherInfo EmployeeOtherInfo[]
|
||||
|
||||
editHistory EmployeeHistory[]
|
||||
}
|
||||
|
||||
model EmployeeHistory {
|
||||
id String @id @default(uuid())
|
||||
field String
|
||||
valueBefore Json
|
||||
valueAfter Json
|
||||
|
||||
timestamp DateTime @default(now())
|
||||
|
||||
masterId String
|
||||
master Employee @relation(fields: [masterId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
model EmployeeCheckup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue