UNPKG

@tomei/product

Version:

NestJS package for product module

66 lines (65 loc) 1.51 kB
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('store_Store', { StoreId: { allowNull: false, primaryKey: true, type: Sequelize.STRING, }, Name: { type: Sequelize.STRING(200), }, Description: { type: Sequelize.STRING(1000), }, URL: { type: Sequelize.STRING, }, Platform: { type: Sequelize.ENUM([ 'Shopee Malaysia', 'Lazada Malaysia', 'Zalora Malaysia', 'WooCommerce', 'Shopify', ]), }, Brand: { type: Sequelize.STRING(100), }, Type:{ type: Sequelize.ENUM(['Outlet', 'Marketplace', 'Webstore']), }, BuildingCode:{ type: Sequelize.STRING, }, SSMarketplaceCode:{ type: Sequelize.STRING(30), }, Status:{ type: Sequelize.ENUM(['Active', 'Inactive', 'Deleted', 'Closed']), defaultValue: 'Active', }, CreatedById:{ type: Sequelize.STRING, }, UpdatedById: { type: Sequelize.STRING, }, CreatedAt: { allowNull: false, defaultValue: new Date(), type: Sequelize.DATE, }, UpdatedAt: { allowNull: false, defaultValue: new Date(), type: Sequelize.DATE, }, }); }, down: (queryInterface) => { return queryInterface.dropTable('store_Store'); }, };