summaryrefslogtreecommitdiff
path: root/models/match.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
commit59d82d6c68ae3e75c3a4d9408238c44640e587db (patch)
tree9aa61cd679bed9829c0637c5832265c59a77d031 /models/match.js
parent37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff)
downloadprocessor-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz
processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip
regenerate model from releases/2.0.0 db schema
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
});
};