"""add name_translations to subscription_tiers

Revision ID: billing_002
Revises: hosting_001
Create Date: 2026-03-03
"""

import sqlalchemy as sa

from alembic import op

revision = "billing_002"
down_revision = "hosting_001"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "subscription_tiers",
        sa.Column(
            "name_translations",
            sa.JSON(),
            nullable=True,
            comment="Language-keyed name dict for multi-language support",
        ),
    )


def downgrade() -> None:
    op.drop_column("subscription_tiers", "name_translations")
