"""add seating layout master

Revision ID: 89b741b581e2
Revises: b12680609fab
Create Date: 2026-08-18 11:44:00.223032

"""
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 = '89b741b581e2'
down_revision: Union[str, None] = 'b12680609fab'
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('seating_layout_master',
    sa.Column('layout_id', sa.UUID(), nullable=False),
    sa.Column('layout_no', sa.String(length=100), nullable=False),
    sa.Column('chassis_model', sa.String(length=100), nullable=False),
    sa.Column('body_type', sa.String(length=100), nullable=False),
    sa.Column('segment', sa.String(length=100), nullable=False),
    sa.Column('door_type', sa.String(length=100), nullable=False),
    sa.Column('seat_type', sa.String(length=100), nullable=False),
    sa.Column('seating_type', sa.String(length=100), nullable=False),
    sa.Column('seating_capacity', sa.String(length=100), nullable=False),
    sa.Column('image_url', sa.String(length=500), nullable=True),
    sa.Column('pdf_url', sa.String(length=500), nullable=True),
    sa.Column('created_at', sa.DateTime(timezone=True), nullable=True),
    sa.PrimaryKeyConstraint('layout_id'),
    sa.UniqueConstraint('layout_no')
    )
    # ### end Alembic commands ###


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