"""auto update

Revision ID: b0e208ebc16e
Revises: b9c43953d04a
Create Date: 2026-04-30 03:51:35.217310

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'b0e208ebc16e'
down_revision: Union[str, Sequence[str], None] = 'b9c43953d04a'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('chat_branding',
    sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
    sa.Column('widget_name', sa.String(), nullable=True),
    sa.Column('avatar_url', sa.String(), nullable=True),
    sa.Column('avatar_fallback_initials', sa.String(), nullable=True),
    sa.Column('agent_avatar_url', sa.String(), nullable=True),
    sa.Column('primary_color', sa.String(), nullable=True),
    sa.Column('accent_color', sa.String(), nullable=True),
    sa.Column('bubble_bg_color', sa.String(), nullable=True),
    sa.Column('bubble_text_color', sa.String(), nullable=True),
    sa.Column('header_bg_color', sa.String(), nullable=True),
    sa.Column('header_text_color', sa.String(), nullable=True),
    sa.Column('launcher_style', sa.String(), nullable=True),
    sa.Column('launcher_icon', sa.String(), nullable=True),
    sa.Column('launcher_icon_url', sa.String(), nullable=True),
    sa.Column('launcher_position', sa.String(), nullable=True),
    sa.Column('welcome_message', sa.String(), nullable=True),
    sa.Column('offline_message', sa.String(), nullable=True),
    sa.Column('ai_intro_message', sa.String(), nullable=True),
    sa.Column('human_handover_message', sa.String(), nullable=True),
    sa.Column('input_placeholder', sa.String(), nullable=True),
    sa.Column('show_branding_footer', sa.Boolean(), nullable=True),
    sa.Column('footer_text', sa.String(), nullable=True),
    sa.Column('enable_sound', sa.Boolean(), nullable=True),
    sa.Column('notification_sound', sa.String(), nullable=True),
    sa.Column('theme_mode', sa.String(), nullable=True),
    sa.Column('rounded', sa.String(), nullable=True),
    sa.Column('font_family', sa.String(), nullable=True),
    sa.Column('created_at', sa.DateTime(timezone=True), nullable=True),
    sa.Column('updated_at', sa.DateTime(timezone=True), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_chat_branding_id'), 'chat_branding', ['id'], unique=False)
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_chat_branding_id'), table_name='chat_branding')
    op.drop_table('chat_branding')
    # ### end Alembic commands ###