# Generated by Django 5.2.4 on 2026-03-27 10:33

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0013_update_first_admin_role'),
    ]

    operations = [
        migrations.CreateModel(
            name='EsLocation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=150)),
                ('name', models.CharField(max_length=150)),
                ('desc', models.TextField(null=True)),
                ('seat_order', models.SmallIntegerField(db_comment='1 - Column First, 2 - Row First')),
                ('row', models.IntegerField(default=0)),
                ('column', models.IntegerField(default=0)),
                ('is_partition', models.BooleanField(default=False)),
                ('status', models.SmallIntegerField(db_comment='1 - Active, 2 - Inactive')),
                ('extra_data_1', models.TextField(null=True)),
                ('extra_data_2', models.TextField(null=True)),
                ('extra_data_3', models.TextField(null=True)),
                ('extra_data_4', models.TextField(null=True)),
                ('extra_data_5', models.TextField(null=True)),
                ('extra_data_6', models.TextField(null=True)),
                ('extra_data_7', models.TextField(null=True)),
                ('extra_data_8', models.TextField(null=True)),
                ('extra_data_9', models.TextField(null=True)),
                ('extra_data_10', models.TextField(null=True)),
                ('created_by', models.BigIntegerField(null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_by', models.BigIntegerField(null=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'es_location',
            },
        ),
        migrations.CreateModel(
            name='EsLocationUnavailableSeat',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type', models.SmallIntegerField(db_comment='0 - Any, 1 - Wall, 2 - Window, 3 - Door, 4 - Pillar')),
                ('cord_x', models.IntegerField()),
                ('cord_y', models.IntegerField()),
                ('created_by', models.BigIntegerField(null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_by', models.BigIntegerField(null=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('location', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.eslocation')),
            ],
            options={
                'db_table': 'es_location_unavailable_seat',
            },
        ),
    ]
