chore: update migration
This commit is contained in:
parent
e63510850b
commit
b5d59ff276
2 changed files with 26 additions and 2 deletions
|
|
@ -239,6 +239,7 @@ model Branch {
|
|||
productRegistration Product[]
|
||||
serviceRegistration Service[]
|
||||
customerRegistration Customer[]
|
||||
ProductGroup ProductGroup[]
|
||||
}
|
||||
|
||||
model BranchBank {
|
||||
|
|
@ -533,8 +534,8 @@ model Employee {
|
|||
entryDate DateTime? @db.Date
|
||||
workerStatus String?
|
||||
|
||||
customerBranch CustomerBranch? @relation(fields: [customerBranchId], references: [id], onDelete: SetNull)
|
||||
customerBranchId String?
|
||||
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
|
||||
customerBranchId String
|
||||
|
||||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
|
@ -657,6 +658,9 @@ model ProductGroup {
|
|||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
||||
registeredBranchId String?
|
||||
registeredBranch Branch? @relation(fields: [registeredBranchId], references: [id])
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
createdBy User? @relation(name: "ProductGroupCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
|
||||
createdByUserId String?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue