summaryrefslogtreecommitdiff
path: root/models/global_point.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-07 17:55:03 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-07 17:55:03 +0200
commitd4380da66020f2a3d496715d14b637a868c81614 (patch)
treec2d20f90139c7fbb10c1855b3e79e4d525c9a992 /models/global_point.js
parent3493a5bff6d622ccb8f1eba1c72bd939a418c1c5 (diff)
downloadorm-d4380da66020f2a3d496715d14b637a868c81614.tar.gz
orm-d4380da66020f2a3d496715d14b637a868c81614.zip
reimport after breaking changes
Diffstat (limited to 'models/global_point.js')
-rw-r--r--models/global_point.js61
1 files changed, 61 insertions, 0 deletions
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
+ });
+};