diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
| commit | 59d82d6c68ae3e75c3a4d9408238c44640e587db (patch) | |
| tree | 9aa61cd679bed9829c0637c5832265c59a77d031 /models/roster.js | |
| parent | 37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff) | |
| download | processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip | |
regenerate model from releases/2.0.0 db schema
Diffstat (limited to 'models/roster.js')
| -rw-r--r-- | models/roster.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/models/roster.js b/models/roster.js index f196f0f..53a4411 100644 --- a/models/roster.js +++ b/models/roster.js @@ -8,7 +8,7 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true, autoIncrement: true }, - match_api_id: { + shard_id: { type: DataTypes.STRING(191), allowNull: false }, @@ -17,7 +17,7 @@ module.exports = function(sequelize, DataTypes) { allowNull: false, unique: true }, - shard_id: { + match_api_id: { type: DataTypes.STRING(191), allowNull: false }, @@ -42,7 +42,8 @@ module.exports = function(sequelize, DataTypes) { allowNull: false }, team_color: { - type: DataTypes.STRING(191) + type: DataTypes.STRING(191), + allowNull: false }, turret_kills: { type: DataTypes.INTEGER(11), @@ -54,6 +55,8 @@ module.exports = function(sequelize, DataTypes) { } }, { tableName: 'roster', - timestamps: false + timestamps: false, + underscored: true, + freezeTableName: true }); }; |
