"""Phase 13.6 — Pharmacy Network."""
from alembic import op
from app.core.database import Base
import app.models  # noqa: F401

revision = "0007_phase_136_pharmacy_network"
down_revision = "0006_phase_135_medical_record"
branch_labels = None
depends_on = None


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


def downgrade():
    for table in (
        "prescription_status_history",
        "prescription_lines",
        "prescription_orders",
        "pharmacies",
    ):
        op.drop_table(table)
