diff options
Diffstat (limited to 'models/tournament_participants.js')
| -rw-r--r-- | models/tournament_participants.js | 29 |
1 files changed, 29 insertions, 0 deletions
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 + }); +}; |
