chore: update migration

This commit is contained in:
Methapon2001 2024-06-11 15:12:09 +07:00
parent 7e104a0020
commit b57cd6ac95
2 changed files with 14 additions and 0 deletions

View file

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

View file

@ -350,6 +350,7 @@ model Customer {
model CustomerBranch {
id String @id @default(uuid())
branchNo Int
code String
legalPersonNo String
name String
@ -638,6 +639,8 @@ model Product {
workProduct WorkProduct[]
attributes Json?
createdBy String?
createdAt DateTime @default(now())
updateBy String?