From d4380da66020f2a3d496715d14b637a868c81614 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 7 Apr 2017 17:55:03 +0200 Subject: reimport after breaking changes --- models/match.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'models/match.js') 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 } }, { -- cgit v1.3.1