UNPKG

@tomei/customer-base

Version:

Tomei Customer Base Package

36 lines (33 loc) 812 B
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.createTable('customer_Business', { CustomerId: { allowNull: false, primaryKey: true, type: Sequelize.STRING(30), references: { model: 'customer_Base', key: 'CustomerId', }, onUpdate: 'CASCADE', onDelete: 'CASCADE', }, CompanyName: { allowNull: false, type: Sequelize.STRING(200), }, RegistrationNo: { allowNull: true, type: Sequelize.STRING(20), }, TaxIdentificationNo: { allowNull: true, type: Sequelize.STRING(20), }, }); }, down: async (queryInterface) => { return queryInterface.dropTable('customer_Business'); }, };