UNPKG

@tomei/rental

Version:
33 lines (30 loc) 859 B
'use strict'; /** @type {import('sequelize-cli').Migration} */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable('rental_Price', { PriceId: { type: Sequelize.STRING(30), allowNull: false, primaryKey: true, }, RetailPrice: { type: Sequelize.DECIMAL(10, 2), allowNull: false, }, Currency: { type: Sequelize.CHAR(3), allowNull: false, }, PromoCode: { type: Sequelize.STRING(10), }, Remarks: { type: Sequelize.STRING(3000), }, }); }, async down(queryInterface) { await queryInterface.dropTable('rental_Price'); }, };