summaryrefslogtreecommitdiff
path: root/models/match.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/match.js')
-rw-r--r--models/match.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/models/match.js b/models/match.js
index 8372d97..46c4f80 100644
--- a/models/match.js
+++ b/models/match.js
@@ -13,8 +13,16 @@ module.exports = function(sequelize, DataTypes) {
allowNull: false,
unique: true
},
+ shard_id: {
+ type: DataTypes.STRING(191),
+ allowNull: false
+ },
+ series: {
+ type: DataTypes.STRING(191),
+ allowNull: true
+ },
created_at: {
- type: DataTypes.DATE,
+ type: DataTypes.TIME,
allowNull: false,
defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
},
@@ -26,14 +34,6 @@ module.exports = function(sequelize, DataTypes) {
type: DataTypes.STRING(191),
allowNull: false
},
- series: {
- type: DataTypes.STRING(191),
- allowNull: true
- },
- shard_id: {
- type: DataTypes.STRING(191),
- allowNull: false
- },
end_game_reason: {
type: DataTypes.STRING(191),
allowNull: false
@@ -44,6 +44,8 @@ module.exports = function(sequelize, DataTypes) {
}
}, {
tableName: 'match',
- timestamps: false
+ timestamps: false,
+ underscored: true,
+ freezeTableName: true
});
};