feat: add flag
This commit is contained in:
parent
d970486348
commit
03707b7bd8
3 changed files with 6 additions and 0 deletions
2
prisma/migrations/20240903095439_add_flag/migration.sql
Normal file
2
prisma/migrations/20240903095439_add_flag/migration.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Branch" ADD COLUMN "virtual" BOOLEAN;
|
||||||
|
|
@ -218,6 +218,8 @@ model Branch {
|
||||||
headOffice Branch? @relation(name: "HeadOfficeRelation", fields: [headOfficeId], references: [id])
|
headOffice Branch? @relation(name: "HeadOfficeRelation", fields: [headOfficeId], references: [id])
|
||||||
headOfficeId String?
|
headOfficeId String?
|
||||||
|
|
||||||
|
virtual Boolean?
|
||||||
|
|
||||||
bank BranchBank[]
|
bank BranchBank[]
|
||||||
|
|
||||||
status Status @default(CREATED)
|
status Status @default(CREATED)
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ type BranchCreate = {
|
||||||
lineId?: string | null;
|
lineId?: string | null;
|
||||||
longitude: string;
|
longitude: string;
|
||||||
latitude: string;
|
latitude: string;
|
||||||
|
virtual?: boolean;
|
||||||
|
|
||||||
bank?: {
|
bank?: {
|
||||||
bankName: string;
|
bankName: string;
|
||||||
|
|
@ -76,6 +77,7 @@ type BranchUpdate = {
|
||||||
lineId?: string;
|
lineId?: string;
|
||||||
longitude?: string;
|
longitude?: string;
|
||||||
latitude?: string;
|
latitude?: string;
|
||||||
|
virtual?: boolean;
|
||||||
|
|
||||||
subDistrictId?: string | null;
|
subDistrictId?: string | null;
|
||||||
districtId?: string | null;
|
districtId?: string | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue