"""add recurring invite meeting link and meeting toggle state

Revision ID: 1553d3f245fd
Revises: d6520aedd835
Create Date: 2026-06-16 17:47:32.091016
"""
from __future__ import annotations

from alembic import op
import sqlalchemy as sa



# revision identifiers, used by Alembic.
revision = '1553d3f245fd'
down_revision = 'd6520aedd835'
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('meetings', sa.Column('app_toggle_enabled', sa.Boolean(), nullable=True))
    op.add_column('recurring_meeting_invites', sa.Column('meeting_id', sa.Integer(), nullable=True))
    op.create_index(op.f('ix_recurring_meeting_invites_meeting_id'), 'recurring_meeting_invites', ['meeting_id'], unique=False)
    op.create_foreign_key(None, 'recurring_meeting_invites', 'meetings', ['meeting_id'], ['id'])
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'recurring_meeting_invites', type_='foreignkey')
    op.drop_index(op.f('ix_recurring_meeting_invites_meeting_id'), table_name='recurring_meeting_invites')
    op.drop_column('recurring_meeting_invites', 'meeting_id')
    op.drop_column('meetings', 'app_toggle_enabled')
    # ### end Alembic commands ###
