Serverless handler stub created

This commit is contained in:
Senad Uka
2019-03-07 06:24:08 +01:00
parent 4726031c8e
commit 3f8e6438b2
17 changed files with 1575 additions and 43 deletions

17
ma-api/lib/MarketAlert.js Normal file
View File

@@ -0,0 +1,17 @@
const Sequelize = require("sequelize");
const sequelize = require("./db.js");
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;