From 0f1fef88ca050a3160069594fcff7e19e1899676 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 4 May 2017 13:24:52 +0200 Subject: import teams --- models/tournament_participants.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 models/tournament_participants.js (limited to 'models/tournament_participants.js') diff --git a/models/tournament_participants.js b/models/tournament_participants.js new file mode 100644 index 0000000..010a89e --- /dev/null +++ b/models/tournament_participants.js @@ -0,0 +1,29 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('tournament_participants', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + tournament_id: { + type: DataTypes.BIGINT, + allowNull: false + }, + tournament_team_id: { + type: DataTypes.BIGINT, + allowNull: false + }, + player_api_id: { + type: DataTypes.CHAR(36), + allowNull: false + } + }, { + tableName: 'tournament_participants', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; -- cgit v1.3.1