diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-07 17:55:03 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-07 17:55:03 +0200 |
| commit | d4380da66020f2a3d496715d14b637a868c81614 (patch) | |
| tree | c2d20f90139c7fbb10c1855b3e79e4d525c9a992 /models/match.js | |
| parent | 3493a5bff6d622ccb8f1eba1c72bd939a418c1c5 (diff) | |
| download | orm-d4380da66020f2a3d496715d14b637a868c81614.tar.gz orm-d4380da66020f2a3d496715d14b637a868c81614.zip | |
reimport after breaking changes
Diffstat (limited to 'models/match.js')
| -rw-r--r-- | models/match.js | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/models/match.js b/models/match.js index ec5bdab..d17d769 100644 --- a/models/match.js +++ b/models/match.js @@ -8,37 +8,34 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true, autoIncrement: true }, - api_id: { - type: DataTypes.STRING(191), - allowNull: false, - unique: true - }, shard_id: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(5), allowNull: false }, - series: { - type: DataTypes.STRING(191), - allowNull: true + api_id: { + type: DataTypes.CHAR(36), + allowNull: false, + unique: true }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: false, + defaultValue: sequelize.fn('NOW') }, duration: { - type: DataTypes.INTEGER(11), + type: DataTypes.INTEGER(5).UNSIGNED, allowNull: false }, game_mode: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(16), allowNull: false }, end_game_reason: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(16), allowNull: false }, queue: { - type: DataTypes.STRING(191), + type: DataTypes.STRING(16), allowNull: false } }, { |
