%PDF- %PDF-
Direktori : /home/opti/workflow/src/migrations/ |
Current File : /home/opti/workflow/src/migrations/20190320131407-create-invoice-item.js |
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('InvoiceItems', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, invoiceId: { type: Sequelize.INTEGER }, price: { type: Sequelize.DECIMAL }, quantity: { type: Sequelize.INTEGER }, name: { type: Sequelize.STRING }, description: { type: Sequelize.STRING }, createdAt: { allowNull: false, type: Sequelize.DATE }, updatedAt: { allowNull: false, type: Sequelize.DATE } }); }, down: (queryInterface, Sequelize) => { return queryInterface.dropTable('InvoiceItems'); } };