"""Phase 13.3 — Clinic Management."""
from alembic import op
from app.core.database import Base
import app.models  # noqa: F401

revision = "0004_phase_133_clinic_management"
down_revision = "0003_phase_132_doctor_panel"
branch_labels = None
depends_on = None


def upgrade():
    bind = op.get_bind()
    Base.metadata.create_all(bind=bind)


def downgrade():
    for table in (
        "operating_hours_policies",
        "clinic_policies",
        "staff_assignments",
        "clinic_services",
    ):
        op.drop_table(table)
