From 6b4cb056cf133edcc3b2137f0bb35913a0096d07 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 1 Apr 2017 13:12:28 +0200 Subject: generate from db --- models/player_ext.js | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'models/player_ext.js') diff --git a/models/player_ext.js b/models/player_ext.js index f31b790..6d0a369 100644 --- a/models/player_ext.js +++ b/models/player_ext.js @@ -4,9 +4,7 @@ module.exports = function(sequelize, DataTypes) { return sequelize.define('player_ext', { id: { type: DataTypes.INTEGER(11), - allowNull: false, - primaryKey: true, - autoIncrement: true + allowNull: false }, player_api_id: { type: DataTypes.STRING(191), @@ -15,43 +13,55 @@ module.exports = function(sequelize, DataTypes) { }, played: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, played_ranked: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, played_casual: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, played_brawl: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, wins: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, wins_ranked: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, wins_casual: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, wins_brawl: { type: DataTypes.INTEGER(11), - allowNull: true + allowNull: false }, skill_tier: { type: DataTypes.STRING(191), allowNull: true }, - streak: { + played_role_1: { + type: DataTypes.STRING(191), + allowNull: true + }, + played_role_2: { type: DataTypes.STRING(191), allowNull: true + }, + played_role_3: { + type: DataTypes.STRING(191), + allowNull: true + }, + streak: { + type: DataTypes.STRING(191), + allowNull: false } }, { tableName: 'player_ext', -- cgit v1.3.1