Files
old-web/app/migrations/20190417035319-create-market-alert.js

35 lines
736 B
JavaScript
Raw Normal View History

2019-09-05 11:14:54 +02:00
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
2019-09-05 11:14:54 +02:00
return queryInterface.createTable("MarketAlerts", {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
olxUrl: {
type: Sequelize.STRING
},
lastDate: {
type: Sequelize.STRING
},
email: {
type: Sequelize.STRING,
allowNull: false
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
2019-09-05 11:14:54 +02:00
return queryInterface.dropTable("MarketAlerts");
}
};