From 59d82d6c68ae3e75c3a4d9408238c44640e587db Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 31 Mar 2017 15:14:12 +0200 Subject: regenerate model from releases/2.0.0 db schema --- models/roster.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'models/roster.js') 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 }); }; -- cgit v1.3.1