feat: update structure
This commit is contained in:
parent
b999c9dd46
commit
353d372dd8
3 changed files with 43 additions and 3 deletions
|
|
@ -728,8 +728,9 @@ model Employee {
|
|||
employeeWork EmployeeWork[]
|
||||
employeeOtherInfo EmployeeOtherInfo?
|
||||
|
||||
editHistory EmployeeHistory[]
|
||||
quotationWorker QuotationWorker[]
|
||||
editHistory EmployeeHistory[]
|
||||
quotationWorker QuotationWorker[]
|
||||
quotationProductServiceWorker QuotationProductServiceWorker[]
|
||||
}
|
||||
|
||||
model EmployeeHistory {
|
||||
|
|
@ -1033,7 +1034,7 @@ model Quotation {
|
|||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
||||
quotationStatus QuotationStatus @default(PaymentPending)
|
||||
quotationStatus QuotationStatus @default(PaymentWait)
|
||||
|
||||
code String
|
||||
|
||||
|
|
@ -1116,4 +1117,16 @@ model QuotationProductServiceList {
|
|||
|
||||
serviceId String?
|
||||
service Service? @relation(fields: [serviceId], references: [id])
|
||||
|
||||
worker QuotationProductServiceWorker[]
|
||||
}
|
||||
|
||||
model QuotationProductServiceWorker {
|
||||
productService QuotationProductServiceList @relation(fields: [productServiceId], references: [id], onDelete: Cascade)
|
||||
productServiceId String
|
||||
|
||||
employee Employee @relation(fields: [employeeId], references: [id], onDelete: Cascade)
|
||||
employeeId String
|
||||
|
||||
@@id([productServiceId, employeeId])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue