chore: migration

This commit is contained in:
Methapon Metanipat 2024-09-25 16:42:02 +07:00
parent e4064a0695
commit 78e248c305
2 changed files with 34 additions and 5 deletions

View file

@ -572,7 +572,7 @@ model CustomerBranchCitizen {
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
}
model CustomerBranchPoa {
@ -581,7 +581,7 @@ model CustomerBranchPoa {
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
}
model CustomerBranchHouseRegis {
@ -634,7 +634,7 @@ model CustomerBranchHouseRegis {
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
}
enum CommercialType {
@ -656,7 +656,7 @@ model CustomerBranchCommercialRegis {
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
}
model CustomerBranchVatRegis {
@ -665,7 +665,7 @@ model CustomerBranchVatRegis {
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
}
model Employee {