Large set of changes - building the GUI for the data tracking app.

This commit is contained in:
Wynne Crisman
2016-08-17 17:54:59 -07:00
parent 08266cdd41
commit b3bbdc0c2a
47 changed files with 4186 additions and 158 deletions

View File

@@ -13,12 +13,20 @@ module.exports = function(sequelize, DataTypes) {
type: DataTypes.STRING,
allowNull: false
},
visible: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true
createdAt: {
type: DataTypes.DATE,
allowNull: false
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false
},
deletedAt: {
type: DataTypes.DATE,
allowNull: true
}
}, {
freezeTableName: true // Model tableName will be the same as the model name
freezeTableName: true, // Model tableName will be the same as the model name,
paranoid: true
});
};