2019-09-05 11:14:54 +02:00
|
|
|
"use strict";
|
2019-04-20 05:26:14 +02:00
|
|
|
module.exports = {
|
|
|
|
|
up: (queryInterface, Sequelize) => {
|
2019-09-05 11:14:54 +02:00
|
|
|
return queryInterface.createTable("RealEstateRequests", {
|
2019-04-20 05:26:14 +02:00
|
|
|
id: {
|
|
|
|
|
allowNull: false,
|
|
|
|
|
autoIncrement: true,
|
|
|
|
|
primaryKey: true,
|
|
|
|
|
type: Sequelize.INTEGER
|
|
|
|
|
},
|
|
|
|
|
uniqueId: {
|
|
|
|
|
type: Sequelize.UUID
|
|
|
|
|
},
|
|
|
|
|
realEstateType: {
|
2019-05-20 19:23:37 +02:00
|
|
|
type: Sequelize.STRING
|
2019-04-20 05:26:14 +02:00
|
|
|
},
|
|
|
|
|
email: {
|
|
|
|
|
type: Sequelize.STRING
|
|
|
|
|
},
|
|
|
|
|
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("RealEstateRequests");
|
2019-04-20 05:26:14 +02:00
|
|
|
}
|
|
|
|
|
};
|