"""Make PlayerTeamAvailability a db.Model Revision ID: 8ea29cf493f5 Revises: b00632365b58 Create Date: 2024-10-30 22:21:13.718428 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8ea29cf493f5' down_revision = 'b00632365b58' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('player_team_availability', sa.Column('player_id', sa.Integer(), nullable=False), sa.Column('team_id', sa.Integer(), nullable=False), sa.Column('start_time', sa.TIMESTAMP(), nullable=False), sa.Column('end_time', sa.TIMESTAMP(), nullable=False), sa.ForeignKeyConstraint(['player_id', 'team_id'], ['players_teams.player_id', 'players_teams.team_id'], ), sa.PrimaryKeyConstraint('player_id', 'team_id') ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('player_team_availability') # ### end Alembic commands ###