UNPKG

@devx-commerce/plugin-gati

Version:

Gati ERP integration for Medusa

16 lines 3.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Migration20250604104235 = void 0; const migrations_1 = require("@mikro-orm/migrations"); class Migration20250604104235 extends migrations_1.Migration { async up() { this.addSql(`create table if not exists "party_master" ("id" text not null, "party_no" integer not null, "party_code" text not null, "firm_name" text not null, "legal_name" text not null, "firm_add1" text not null, "firm_add2" text not null, "firm_add3" text not null, "firm_pin_code" text not null, "firm_email" text not null, "owner_mobile" text not null, "firm_tele" text not null, "whatsapp_no" text not null, "country_id" integer not null, "country" text not null, "state_id" integer not null, "state" text not null, "firm_city" text not null, "firm_birth_date" timestamptz not null, "firm_anniversary_date" timestamptz not null, "branch_no" integer not null, "branch_name" text not null, "location_id" integer not null, "location_name" text not null, "aadhaar_no" text not null, "firm_pan" text not null, "gst_no" text not null, "lut_no" text not null, "identity_proof" text not null, "cst_no" text not null, "lst_no" text not null, "service_tax_no" text not null, "bank_acc_no" text not null, "bank_name" text not null, "bank_add1" text not null, "bank_add2" text not null, "bank_add3" text not null, "bank_pin_code" text not null, "bank_ifsccode" text not null, "bank_swiftcode" text not null, "is_customer" boolean not null, "is_supplier" boolean not null, "is_account" boolean not null, "is_salesman" boolean not null, "is_factory" boolean not null, "factory_type" boolean not null, "is_tools" boolean not null, "is_location" boolean not null, "is_pd_head" boolean not null, "is_inline_branch" boolean not null, "is_scheme_member" boolean not null, "control_acc_no" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "party_master_pkey" primary key ("id"));`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_party_master_party_code" ON "party_master" (party_code) WHERE deleted_at IS NULL;`); this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_party_master_deleted_at" ON "party_master" (deleted_at) WHERE deleted_at IS NULL;`); } async down() { this.addSql(`drop table if exists "party_master" cascade;`); } } exports.Migration20250604104235 = Migration20250604104235; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MDQxMDQyMzUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXJ0eS1tYXN0ZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDYwNDEwNDIzNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsZ3VEQUFndUQsQ0FBQyxDQUFDO1FBQzl1RCxJQUFJLENBQUMsTUFBTSxDQUFDLG1IQUFtSCxDQUFDLENBQUM7UUFDakksSUFBSSxDQUFDLE1BQU0sQ0FBQyxtSEFBbUgsQ0FBQyxDQUFDO0lBQ25JLENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLDhDQUE4QyxDQUFDLENBQUM7SUFDOUQsQ0FBQztDQUVGO0FBWkQsMERBWUMifQ==