refactor: make field optional

This commit is contained in:
Methapon Metanipat 2024-09-16 14:00:46 +07:00
parent c7b5f91d31
commit db53385557
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "CustomerBranch" ALTER COLUMN "customerName" DROP NOT NULL;

View file

@ -444,7 +444,7 @@ model CustomerBranch {
id String @id @default(cuid())
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
customerId String
customerName String
customerName String?
code String
codeCustomer String