14 lines
379 B
Python
14 lines
379 B
Python
"""Abstract base class for match participant models."""
|
|
|
|
from app.extensions import db
|
|
from app.time_utils import utc_now_naive
|
|
|
|
|
|
class BaseParticipant(db.Model):
|
|
"""Shared schema for match participants."""
|
|
|
|
__abstract__ = True
|
|
|
|
player_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
|
|
added_at = db.Column(db.DateTime, default=utc_now_naive)
|