chore: migration

This commit is contained in:
Methapon Metanipat 2024-09-11 13:30:56 +07:00
parent b1bd14f6aa
commit a6951c7fd8
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Employee" ADD COLUMN "selectedImage" TEXT;

View file

@ -539,8 +539,9 @@ model Employee {
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id], onDelete: Cascade)
customerBranchId String
status Status @default(CREATED)
statusOrder Int @default(0)
status Status @default(CREATED)
statusOrder Int @default(0)
selectedImage String?
createdAt DateTime @default(now())
createdBy User? @relation(name: "EmployeeCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)