summaryrefslogtreecommitdiff
path: root/models/tournament_participants.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:17 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-14 18:58:17 +0200
commitdd2a4f706f20b83144e637896c55c550afa7030a (patch)
treeb6f48beba19672577cfbfba71b45ea89e780088f /models/tournament_participants.js
parent0e5c3afae2be7a36372d9b29a1c7fa5fba649341 (diff)
downloadorm-dd2a4f706f20b83144e637896c55c550afa7030a.tar.gz
orm-dd2a4f706f20b83144e637896c55c550afa7030a.zip
2.14.0 rewrite
Diffstat (limited to 'models/tournament_participants.js')
-rw-r--r--models/tournament_participants.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/models/tournament_participants.js b/models/tournament_participants.js
index 010a89e..284ca42 100644
--- a/models/tournament_participants.js
+++ b/models/tournament_participants.js
@@ -8,11 +8,15 @@ module.exports = function(sequelize, DataTypes) {
primaryKey: true,
autoIncrement: true
},
- tournament_id: {
+ league_id: {
type: DataTypes.BIGINT,
allowNull: false
},
- tournament_team_id: {
+ team_id: {
+ type: DataTypes.BIGINT,
+ allowNull: false
+ },
+ role_id: {
type: DataTypes.BIGINT,
allowNull: false
},