diff --git a/prisma/migrations/20240924025549_add_remark_field/migration.sql b/prisma/migrations/20240924025549_add_remark_field/migration.sql new file mode 100644 index 0000000..45ceace --- /dev/null +++ b/prisma/migrations/20240924025549_add_remark_field/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Branch" ADD COLUMN "remark" TEXT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 3552cb4..65174f4 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -238,6 +238,8 @@ model Branch { selectedImage String? + remark String? + bank BranchBank[] status Status @default(CREATED) diff --git a/src/controllers/01-branch-controller.ts b/src/controllers/01-branch-controller.ts index 251a5b3..5d1626f 100644 --- a/src/controllers/01-branch-controller.ts +++ b/src/controllers/01-branch-controller.ts @@ -65,6 +65,7 @@ type BranchCreate = { latitude: string; virtual?: boolean; selectedImage?: string; + remark?: string; bank?: { bankName: string; @@ -107,6 +108,7 @@ type BranchUpdate = { latitude?: string; virtual?: boolean; selectedImage?: string; + remark?: string; subDistrictId?: string | null; districtId?: string | null;