synt_backend
Version:
Synt light-weight node backend service
34 lines (33 loc) • 765 B
JavaScript
"use strict";
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable("PaymentConditions", {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER,
},
name: {
type: Sequelize.STRING,
},
payment_days: {
type: Sequelize.INTEGER.UNSIGNED,
},
payment_end_of_months: {
type: Sequelize.INTEGER.UNSIGNED,
},
createdAt: {
allowNull: false,
type: Sequelize.DATE,
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE,
},
});
},
down: async (queryInterface) => {
await queryInterface.dropTable("PaymentConditions");
},
};