feat: add flag

This commit is contained in:
Methapon Metanipat 2024-09-03 16:54:52 +07:00
parent d970486348
commit 03707b7bd8
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Branch" ADD COLUMN "virtual" BOOLEAN;

View file

@ -218,6 +218,8 @@ model Branch {
headOffice Branch? @relation(name: "HeadOfficeRelation", fields: [headOfficeId], references: [id])
headOfficeId String?
virtual Boolean?
bank BranchBank[]
status Status @default(CREATED)

View file

@ -44,6 +44,7 @@ type BranchCreate = {
lineId?: string | null;
longitude: string;
latitude: string;
virtual?: boolean;
bank?: {
bankName: string;
@ -76,6 +77,7 @@ type BranchUpdate = {
lineId?: string;
longitude?: string;
latitude?: string;
virtual?: boolean;
subDistrictId?: string | null;
districtId?: string | null;