fix: missing field
This commit is contained in:
parent
86888ed512
commit
46c79d50ce
4 changed files with 15 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
@ -441,9 +441,10 @@ model Customer {
|
||||||
}
|
}
|
||||||
|
|
||||||
model CustomerBranch {
|
model CustomerBranch {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
|
customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
|
||||||
customerId String
|
customerId String
|
||||||
|
customerName String
|
||||||
|
|
||||||
code String
|
code String
|
||||||
codeCustomer String
|
codeCustomer String
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ export type CustomerBranchCreate = (
|
||||||
}
|
}
|
||||||
) & {
|
) & {
|
||||||
customerId: string;
|
customerId: string;
|
||||||
|
customerName: string;
|
||||||
|
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
|
|
||||||
|
|
@ -129,6 +130,7 @@ export type CustomerBranchUpdate = (
|
||||||
}
|
}
|
||||||
) & {
|
) & {
|
||||||
customerId?: string;
|
customerId?: string;
|
||||||
|
customerName?: string;
|
||||||
|
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ export type CustomerCreate = {
|
||||||
}
|
}
|
||||||
) & {
|
) & {
|
||||||
customerId: string;
|
customerId: string;
|
||||||
|
customerName: string;
|
||||||
|
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue