fix: missing field

This commit is contained in:
Methapon Metanipat 2024-09-16 13:31:47 +07:00
parent 86888ed512
commit 46c79d50ce
4 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `customerName` to the `CustomerBranch` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "CustomerBranch" ADD COLUMN "customerName" TEXT NOT NULL;

View file

@ -441,9 +441,10 @@ model Customer {
}
model CustomerBranch {
id String @id @default(cuid())
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
customerId String
id String @id @default(cuid())
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
customerId String
customerName String
code String
codeCustomer String