Updated JQuery; Added resize sensor library; Updated the admin code (prior to changing gears to use Meteor).

This commit is contained in:
Wynne Crisman
2016-12-28 11:13:44 -08:00
parent 801c0507e5
commit 00f2be30ce
58 changed files with 29553 additions and 252 deletions

View File

@@ -11,7 +11,7 @@ module.exports = function(sequelize, DataTypes) {
},
name: {
type: DataTypes.STRING,
allowNull: false
allowNull: false
},
createdAt: {
type: DataTypes.DATE,
@@ -27,6 +27,11 @@ module.exports = function(sequelize, DataTypes) {
}
}, {
freezeTableName: true, // Model tableName will be the same as the model name,
paranoid: true
paranoid: true,
classMethods: {
associate: function(models) {
models.Venue.belongsTo(models.VenueType, {as: 'type', foreignKey: {name: 'typeId', field: 'typeId'}});
}
}
});
};