"""Mobile-Konfiguration: mobile_stamping_enabled

Revision ID: 0027
Revises: 0026
Create Date: 2026-05-24

Neues Feld in companies:
  mobile_stamping_enabled BOOLEAN DEFAULT TRUE
  Steuert ob der Einstempel-Button in der mobilen Ansicht sichtbar ist.
  Default TRUE: alle bestehenden Firmen bleiben unverändert.
"""
from alembic import op
import sqlalchemy as sa

revision = "0027"
down_revision = "0026"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "companies",
        sa.Column("mobile_stamping_enabled", sa.Boolean(), nullable=False, server_default=sa.text("true")),
    )


def downgrade() -> None:
    op.drop_column("companies", "mobile_stamping_enabled")
