Refactored backend

This commit is contained in:
Senad Uka
2019-03-25 05:16:58 +01:00
parent 0d7c154958
commit 8c7f26b099
14 changed files with 5 additions and 72 deletions

17
app/models/MarketAlert.js Normal file
View File

@@ -0,0 +1,17 @@
const Sequelize = require("sequelize");
const sequelize = require("../db/db");
const MarketAlert = sequelize.define("market_alert", {
id: {
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey: true
},
olx_url: Sequelize.STRING,
last_date: Sequelize.STRING,
email: {
type: Sequelize.STRING,
allowNull: false
}
});
module.exports = MarketAlert;