WIP Bulk create not working.
This commit is contained in:
@@ -11,15 +11,18 @@ module.exports = (sequalize, DataTypes) => {
|
||||
realEstateId: {
|
||||
type: DataTypes.BIGINT,
|
||||
allowNull: false,
|
||||
|
||||
unique: "uniquePriceRealEstate",
|
||||
references: {
|
||||
model: "RealEstate",
|
||||
model: "RealEstates",
|
||||
key: "id"
|
||||
},
|
||||
onUpdate: "CASCADE",
|
||||
onDelete: "SET NULL"
|
||||
},
|
||||
price: DataTypes.REAL
|
||||
price: {
|
||||
type: DataTypes.REAL,
|
||||
unique: "uniquePriceRealEstate"
|
||||
}
|
||||
});
|
||||
|
||||
PriceHistory.associate = models => {
|
||||
|
||||
Reference in New Issue
Block a user