summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-08-21 19:40:38 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-08-21 19:40:38 +0200
commit34f082959a1a747464f921f89a878111bb59634f (patch)
treeed4d34e7e7b6998f856bf364cb1cf7955278659c
parentb580deeb6d890e411fd26fc78bef55427e4755c5 (diff)
downloadorm-34f082959a1a747464f921f89a878111bb59634f.tar.gz
orm-34f082959a1a747464f921f89a878111bb59634f.zip
reimport
-rw-r--r--models/global_point.js16
-rw-r--r--models/global_point_phase.js104
-rw-r--r--models/participant_items.js4
3 files changed, 104 insertions, 20 deletions
diff --git a/models/global_point.js b/models/global_point.js
index 54be2ff..abba690 100644
--- a/models/global_point.js
+++ b/models/global_point.js
@@ -123,6 +123,22 @@ module.exports = function(sequelize, DataTypes) {
surrender: {
type: "DOUBLE",
allowNull: true
+ },
+ items: {
+ type: "BLOB",
+ allowNull: false
+ },
+ item_grants: {
+ type: "BLOB",
+ allowNull: false
+ },
+ item_uses: {
+ type: "BLOB",
+ allowNull: false
+ },
+ item_sells: {
+ type: "BLOB",
+ allowNull: false
}
}, {
tableName: 'global_point',
diff --git a/models/global_point_phase.js b/models/global_point_phase.js
index 2180d99..41614bb 100644
--- a/models/global_point_phase.js
+++ b/models/global_point_phase.js
@@ -169,36 +169,100 @@ module.exports = function(sequelize, DataTypes) {
allowNull: true
},
ability_a_level: {
- type: DataTypes.INTEGER(3).UNSIGNED,
- allowNull: true
+ type: DataTypes.BIGINT,
+ allowNull: false
},
ability_b_level: {
- type: DataTypes.INTEGER(3).UNSIGNED,
- allowNull: true
+ type: DataTypes.BIGINT,
+ allowNull: false
},
ability_c_level: {
- type: DataTypes.INTEGER(3).UNSIGNED,
- allowNull: true
+ type: DataTypes.BIGINT,
+ allowNull: false
},
hero_level: {
- type: DataTypes.INTEGER(3).UNSIGNED,
- allowNull: true
+ type: DataTypes.BIGINT,
+ allowNull: false
},
- kda_ratio: {
- type: "DOUBLE(5,5)",
- allowNull: true
+ items: {
+ type: "BLOB",
+ allowNull: false
},
- kill_participation: {
- type: "DOUBLE(5,5)",
- allowNull: true
+ item_grants: {
+ type: "BLOB",
+ allowNull: false
},
- cs_per_min: {
- type: "DOUBLE(7,5)",
- allowNull: true
+ item_sells: {
+ type: "BLOB",
+ allowNull: false
},
- kills_per_min: {
- type: "DOUBLE(6,5)",
- allowNull: true
+ ability_a_use: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_b_use: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_c_use: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_a_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_a_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_b_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_b_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_c_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_c_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_perk_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_perk_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_aa_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_aa_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_aacrit_damage_true: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ ability_aacrit_damage_dealt: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ item_uses: {
+ type: "BLOB",
+ allowNull: false
+ },
+ player_damage: {
+ type: "BLOB",
+ allowNull: false
}
}, {
tableName: 'global_point_phase',
diff --git a/models/participant_items.js b/models/participant_items.js
index 5d3c3b7..061bf5a 100644
--- a/models/participant_items.js
+++ b/models/participant_items.js
@@ -32,6 +32,10 @@ module.exports = function(sequelize, DataTypes) {
item_sells: {
type: "BLOB",
allowNull: false
+ },
+ surrender: {
+ type: DataTypes.INTEGER(1),
+ allowNull: false
}
}, {
tableName: 'participant_items',