"""Phase 13.7 — Delivery Integration."""
from alembic import op
from app.core.database import Base
import app.models  # noqa: F401

revision = "0008_phase_137_delivery"
down_revision = "0007_phase_136_pharmacy_network"
branch_labels = None
depends_on = None


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


def downgrade():
    for table in (
        "delivery_job_status_snapshots",
        "delivery_job_intents",
        "delivery_integration_registrations",
    ):
        op.drop_table(table)
