ajustements des calendriers, ajout de matchs jouer vs joueur
This commit is contained in:
@@ -223,6 +223,8 @@ class MatchParticipant(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
match_id = db.Column(db.Integer, db.ForeignKey('matches.id'), nullable=False)
|
||||
player_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
|
||||
team_side = db.Column(db.Integer, nullable=True) # 1 for team 1, 2 for team 2 (for player_vs_player matches)
|
||||
position = db.Column(db.String(50), nullable=True) # Position for this match
|
||||
added_at = db.Column(db.DateTime, default=datetime.utcnow)
|
||||
|
||||
player = db.relationship('User')
|
||||
|
||||
Reference in New Issue
Block a user