"use strict";
module.exports = (sequelize, DataTypes) => {
  const MarketAlert = sequelize.define(
    "MarketAlert",
    {
      url: DataTypes.STRING,
      realestateOrigin: DataTypes.STRING,
      originId: DataTypes.STRING,
      lastDate: DataTypes.STRING,
      size: DataTypes.INTEGER,
      gardenSize: DataTypes.INTEGER,
      price: DataTypes.INTEGER,
      municipality: DataTypes.STRING,
      region: DataTypes.STRING,
      realEstateType: DataTypes.STRING,
      notified: DataTypes.BOOLEAN,
      title: DataTypes.STRING,
      request: DataTypes.STRING,
      hasLocation: DataTypes.BOOLEAN,

      email: {
        type: DataTypes.STRING,
        allowNul: false
      }
    },
    {}
  );
  MarketAlert.associate = function(models) {
    // associations can be defined here
  };
  return MarketAlert;
};
