Geocoding restricttions, added values for range finders, added confirmation email, and .env file

This commit is contained in:
Nedim Uka
2019-06-03 10:34:59 +02:00
parent d6e999fcf1
commit 8f9e3ae46a
14 changed files with 318 additions and 125 deletions

View File

@@ -18,7 +18,8 @@ module.exports = (sequelize, DataTypes) => {
gardenSizeMax: DataTypes.INTEGER,
priceMin: DataTypes.INTEGER,
priceMax: DataTypes.INTEGER,
bounding_box: DataTypes.GEOMETRY('POINT', 4326)
bounding_box: DataTypes.GEOMETRY('POINT', 4326),
subscribed: DataTypes.BOOLEAN
}, {});
RealEstateRequest.associate = function(models) {
// associations can be defined here