15 lines
602 B
Python
15 lines
602 B
Python
"""Participant in a tryout-scoped match."""
|
|
from app.extensions import db
|
|
from app.models.participant.base import BaseParticipant
|
|
|
|
|
|
class MatchParticipant(BaseParticipant):
|
|
"""Participant in a tryout-scoped match."""
|
|
__tablename__ = 'match_participants'
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
match_id = db.Column(db.Integer, db.ForeignKey('matches.id'), nullable=False)
|
|
team_side = db.Column(db.Integer, nullable=True)
|
|
position = db.Column(db.String(50), nullable=True)
|
|
attendance_confirmed = db.Column(db.Boolean, default=False)
|
|
|
|
player = db.relationship('User') |