diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-30 15:12:22 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-30 15:12:22 +0200 |
| commit | c9ca32cdecb2627605e68b07f1f386ef12a4d626 (patch) | |
| tree | 307d951a90a9857d28484eaee744388c370e8f42 /models/participant.js | |
| parent | 5c869aa26666215ec4ea5315b40fea3025a1ae83 (diff) | |
| download | processor-c9ca32cdecb2627605e68b07f1f386ef12a4d626.tar.gz processor-c9ca32cdecb2627605e68b07f1f386ef12a4d626.zip | |
add imported db models
Diffstat (limited to 'models/participant.js')
| -rw-r--r-- | models/participant.js | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/models/participant.js b/models/participant.js new file mode 100644 index 0000000..18ba729 --- /dev/null +++ b/models/participant.js @@ -0,0 +1,103 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('participant', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + api_id: { + type: DataTypes.STRING(191), + allowNull: false, + unique: true + }, + player_api_id: { + type: DataTypes.STRING(191), + allowNull: false + }, + roster_api_id: { + type: DataTypes.STRING(191), + allowNull: false + }, + created_at: { + type: DataTypes.TIME, + allowNull: true + }, + actor: { + type: DataTypes.STRING(191), + allowNull: false + }, + assists: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + crystal_mine_captures: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + deaths: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + farm: { + type: "DOUBLE", + allowNull: false + }, + first_afk_time: { + type: "DOUBLE", + allowNull: false + }, + gold_mine_captures: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + jungle_kills: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + karma_level: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + kills: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + kraken_captures: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + level: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + minion_kills: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + skill_tier: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + skin_key: { + type: DataTypes.STRING(191), + allowNull: false + }, + turret_captures: { + type: DataTypes.INTEGER(11), + allowNull: false + }, + went_afk: { + type: DataTypes.INTEGER(1), + allowNull: false + }, + winner: { + type: DataTypes.INTEGER(1), + allowNull: false + } + }, { + tableName: 'participant' + }); +}; |
