32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
/** Create pppaimt_doctors, the doctor list imported from CSV and keyed by unique email. */
|
|
export async function up(knex) {
|
|
await knex.schema.createTable('pppaimt_doctors', (table) => {
|
|
table.charset('utf8mb4');
|
|
table.collate('utf8mb4_unicode_ci');
|
|
table.increments('id').primary();
|
|
table.string('taskforce', 255).nullable();
|
|
table.string('zbm_name', 255).nullable();
|
|
table.string('rbm_name', 255).nullable();
|
|
table.string('abm_name', 255).nullable();
|
|
table.string('hq', 255).nullable();
|
|
table.string('tm_id', 64).nullable();
|
|
table.string('tm_name', 255).nullable();
|
|
table.string('hcp_name', 255).nullable();
|
|
table.string('legacy_code', 64).nullable();
|
|
table.string('pcode', 64).nullable();
|
|
table.string('speciality', 255).nullable();
|
|
table.string('class', 32).nullable();
|
|
table.string('vendor_code', 64).nullable();
|
|
table.string('vendor_name', 255).nullable();
|
|
table.string('email', 255).notNullable().unique();
|
|
table.string('contact_no', 64).nullable();
|
|
table.string('source_file', 255).nullable();
|
|
table.timestamps(true, true);
|
|
});
|
|
}
|
|
|
|
/** Drop pppaimt_doctors. */
|
|
export async function down(knex) {
|
|
await knex.schema.dropTableIfExists('pppaimt_doctors');
|
|
}
|