summaryrefslogtreecommitdiff
path: root/models/global_point_bans.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-08-15 21:29:07 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-08-15 21:29:07 +0200
commit32021ca861beab43f8252de903e38a76799d86ad (patch)
tree40b3fc1a7a20af6f694c0595a84f85463c922b7d /models/global_point_bans.js
parent9cb6f1f08c3c639457f2065835353f69294ec3c7 (diff)
downloadorm-32021ca861beab43f8252de903e38a76799d86ad.tar.gz
orm-32021ca861beab43f8252de903e38a76799d86ad.zip
add new tables
Diffstat (limited to 'models/global_point_bans.js')
-rw-r--r--models/global_point_bans.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/models/global_point_bans.js b/models/global_point_bans.js
new file mode 100644
index 0000000..4cc4fc5
--- /dev/null
+++ b/models/global_point_bans.js
@@ -0,0 +1,53 @@
+/* jshint indent: 2 */
+
+module.exports = function(sequelize, DataTypes) {
+ return sequelize.define('global_point_bans', {
+ id: {
+ type: DataTypes.INTEGER(10).UNSIGNED,
+ allowNull: false,
+ primaryKey: true,
+ autoIncrement: true
+ },
+ updated_at: {
+ type: DataTypes.DATE,
+ allowNull: false
+ },
+ series_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ filter_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ hero_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ game_mode_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ skill_tier_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ region_id: {
+ type: DataTypes.BIGINT,
+ allowNull: true
+ },
+ played: {
+ type: DataTypes.BIGINT,
+ allowNull: true
+ },
+ bans: {
+ type: DataTypes.BIGINT,
+ allowNull: true
+ }
+ }, {
+ tableName: 'global_point_bans',
+ timestamps: false,
+ underscored: true,
+ freezeTableName: true
+ });
+};