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/global_point.js | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 models/global_point.js (limited to 'models/global_point.js') diff --git a/models/global_point.js b/models/global_point.js new file mode 100644 index 0000000..afe9b45 --- /dev/null +++ b/models/global_point.js @@ -0,0 +1,61 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('global_point', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + updated_at: { + type: DataTypes.DATE, + allowNull: false + }, + pick_rate: { + type: "DOUBLE(8,2)", + allowNull: false + }, + win_rate: { + type: "DOUBLE(8,2)", + allowNull: false + }, + gold_per_min: { + type: "DOUBLE(8,2)", + allowNull: false + }, + cs_per_min: { + type: "DOUBLE(8,2)", + allowNull: false + }, + series_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + filter_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + hero_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + game_mode_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + skill_tier_id: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + build_id: { + type: DataTypes.INTEGER(11), + allowNull: false + } + }, { + tableName: 'global_point', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; -- cgit v1.3.1