Major changes to the database structure: Delete and recreate the whole database (would require too many migrations otherwise). Removed a market, updated some images, added to the AP page, and merged bios.

This commit is contained in:
Wynne Crisman
2016-06-26 11:16:00 -07:00
parent abee7df2eb
commit a57900c065
16 changed files with 163 additions and 247 deletions

View File

@@ -15,10 +15,14 @@ module.exports = {
type: DataTypes.STRING,
allowNull: false
},
counts: {
measures: {
type: DataTypes.JSON,
allowNull: false
},
defaultPrice: {
type: DataTypes.DECIMAL(9,2),
allowNull: false
},
visible: {
type: DataTypes.BOOLEAN,
allowNull: false,
@@ -32,6 +36,14 @@ module.exports = {
},
onUpdate: 'cascade',
onDelete: 'cascade'
},
createdAt: {
type: DataTypes.DATE,
allowNull: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false
}
}, {
charset: 'utf8'