From c5cd9e53d7413ce960a2170eedb466073175bf80 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 8 Jun 2017 12:42:19 +0200 Subject: import 2.7.0 table changes --- models/result.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 models/result.js (limited to 'models/result.js') diff --git a/models/result.js b/models/result.js new file mode 100644 index 0000000..f7c5f8c --- /dev/null +++ b/models/result.js @@ -0,0 +1,41 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('result', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + api_id: { + type: DataTypes.STRING(191), + allowNull: true + }, + event_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + match_api_id: { + type: DataTypes.CHAR(36), + allowNull: false + }, + shard_id: { + type: DataTypes.CHAR(36), + allowNull: false + }, + sequence: { + type: DataTypes.INTEGER(3).UNSIGNED, + allowNull: true + }, + winner_id: { + type: DataTypes.INTEGER(11), + allowNull: true + } + }, { + tableName: 'result', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; -- cgit v1.3.1