"""Add SeatModelConfiguration

Revision ID: 8229a029d950
Revises: e2933a7fac34
Create Date: 2026-08-27 12:41:44.277877

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

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


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('seat_model_configuration',
    sa.Column('id', sa.UUID(), nullable=False),
    sa.Column('body_type_id', sa.UUID(), nullable=False),
    sa.Column('seat_type', sa.String(length=100), nullable=False),
    sa.Column('layout_size', sa.String(length=50), nullable=False),
    sa.Column('seat_model_option_id', sa.UUID(), nullable=False),
    sa.Column('supplier_option_id', sa.UUID(), nullable=False),
    sa.Column('dimensions_option_id', sa.UUID(), nullable=False),
    sa.Column('is_active', sa.Boolean(), nullable=False),
    sa.Column('created_at', sa.DateTime(timezone=True), nullable=True),
    sa.ForeignKeyConstraint(['body_type_id'], ['body_type_master.body_type_id'], ),
    sa.ForeignKeyConstraint(['dimensions_option_id'], ['special_feature_option_master.option_id'], ),
    sa.ForeignKeyConstraint(['seat_model_option_id'], ['special_feature_option_master.option_id'], ),
    sa.ForeignKeyConstraint(['supplier_option_id'], ['special_feature_option_master.option_id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('seat_model_configuration')
    # ### end Alembic commands ###
