@tomei/rental
Version:
Tomei Rental Package
31 lines (28 loc) • 667 B
JavaScript
;
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.createTable('rental_Agreement', {
AgreementNo: {
type: Sequelize.STRING(30),
allowNull: false,
primaryKey: true,
},
Status: {
type: Sequelize.STRING(20),
allowNull: false,
},
DateSigned: {
type: Sequelize.DATE,
allowNull: true,
},
MediaId: {
type: Sequelize.STRING(30),
allowNull: true,
},
});
},
async down(queryInterface) {
await queryInterface.dropTable('rental_Agreement');
},
};