# Generated by Django 5.2.3 on 2025-07-01 14:32

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Directores',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('grado', models.CharField(max_length=100, verbose_name='Grado')),
                ('nombres', models.CharField(max_length=200, validators=[django.core.validators.MinLengthValidator(3)], verbose_name='Nombres y Apellidos')),
                ('cargos', models.CharField(max_length=100, verbose_name='Cargos')),
            ],
        ),
        migrations.CreateModel(
            name='Unidades',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=200, unique=True, verbose_name='Nombre de Unidad')),
            ],
        ),
        migrations.CreateModel(
            name='InventarioAdministrativo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('placa_militar', models.CharField(max_length=50, unique=True, verbose_name='Placa Militar')),
                ('clase', models.CharField(max_length=100, verbose_name='Clase')),
                ('tipo', models.CharField(max_length=100, verbose_name='Tipo')),
                ('marca', models.CharField(max_length=100, verbose_name='Marca')),
                ('modelo', models.CharField(max_length=100, verbose_name='Modelo')),
                ('color', models.CharField(max_length=100, verbose_name='Color')),
                ('tipo_vehiculo', models.CharField(max_length=100, verbose_name='Tipo de Vehículo')),
                ('placa_mtc', models.CharField(blank=True, max_length=100, null=True, verbose_name='Placa MTC')),
                ('ano', models.IntegerField(blank=True, null=True, verbose_name='Año')),
                ('serial_carroceria', models.CharField(max_length=100, unique=True, verbose_name='Serial de Carrocería')),
                ('fecha_creacion', models.DateField(auto_now_add=True, verbose_name='Fecha de Creación')),
                ('asignado', models.BooleanField(default=False, verbose_name='Asignado')),
            ],
            options={
                'verbose_name': 'Inventario Administrativo',
                'verbose_name_plural': 'Inventarios Administrativos',
                'ordering': ['-fecha_creacion'],
                'indexes': [models.Index(fields=['placa_militar'], name='intendencia_placa_m_ce9c1a_idx')],
            },
        ),
        migrations.CreateModel(
            name='InventarioTactico',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('placa_militar', models.CharField(max_length=50, unique=True, verbose_name='Placa Militar')),
                ('tipo', models.CharField(max_length=100, verbose_name='Tipo')),
                ('modelo', models.CharField(max_length=100, verbose_name='Modelo')),
                ('marca', models.CharField(max_length=100, verbose_name='Marca')),
                ('clase', models.CharField(max_length=100, verbose_name='Clase')),
                ('color', models.CharField(max_length=100, verbose_name='Color')),
                ('tipo_vehiculo', models.CharField(max_length=100, verbose_name='Tipo de Vehículo')),
                ('placa_mtc', models.CharField(blank=True, max_length=100, null=True, verbose_name='Placa MTC')),
                ('ano', models.IntegerField(blank=True, null=True, verbose_name='Año')),
                ('serial_chasis', models.CharField(max_length=100, unique=True, verbose_name='Serial del Chasis')),
                ('serial_motor', models.CharField(max_length=100, unique=True, verbose_name='Serial del Motor')),
                ('fecha_creacion', models.DateField(auto_now_add=True, verbose_name='Fecha de Creación')),
                ('asignado', models.BooleanField(default=False, verbose_name='Asignado')),
            ],
            options={
                'verbose_name': 'Inventario Táctico',
                'verbose_name_plural': 'Inventarios Tácticos',
                'ordering': ['-fecha_creacion'],
                'indexes': [models.Index(fields=['placa_militar'], name='intendencia_placa_m_9ee8f2_idx')],
            },
        ),
        migrations.CreateModel(
            name='Subjefes',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('grado', models.CharField(max_length=100, verbose_name='Grado')),
                ('nombres', models.CharField(max_length=200, validators=[django.core.validators.MinLengthValidator(3)], verbose_name='Nombres y Apellidos')),
                ('cargos', models.CharField(max_length=100, verbose_name='Cargos')),
                ('director', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='subjefes', to='intendencia.directores', verbose_name='Director')),
            ],
        ),
        migrations.CreateModel(
            name='AsignadaUnidadTactica',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_creacion', models.DateField(verbose_name='Fecha de Creación')),
                ('comprobante', models.CharField(max_length=50, verbose_name='N° Comprobante')),
                ('precio', models.DecimalField(decimal_places=2, max_digits=15, verbose_name='Precio')),
                ('directores', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_tacticas', to='intendencia.directores', verbose_name='Directores')),
                ('vehiculo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_historial', to='intendencia.inventariotactico', verbose_name='Vehículo')),
                ('jefes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_tacticas', to='intendencia.subjefes', verbose_name='Grupo de Trabajo')),
                ('unidad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_tacticas', to='intendencia.unidades', verbose_name='Unidad')),
            ],
        ),
        migrations.CreateModel(
            name='AsignadaUnidadAdministrativa',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_creacion', models.DateField(verbose_name='Fecha de Creación')),
                ('comprobante', models.CharField(max_length=50, verbose_name='N° Comprobante')),
                ('precio', models.DecimalField(decimal_places=2, max_digits=15, verbose_name='Precio')),
                ('directores', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_admin', to='intendencia.directores', verbose_name='Directores')),
                ('vehiculo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_historial', to='intendencia.inventarioadministrativo', verbose_name='Vehículo')),
                ('jefes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_admin', to='intendencia.subjefes', verbose_name='Grupo de Trabajo')),
                ('unidad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_unidad_admin', to='intendencia.unidades', verbose_name='Unidad')),
            ],
        ),
        migrations.CreateModel(
            name='AsignacionTactica',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_creacion', models.DateField(auto_now_add=True, verbose_name='Fecha de Creación')),
                ('comprobante', models.CharField(max_length=50, verbose_name='N° Comprobante')),
                ('precio', models.DecimalField(decimal_places=2, max_digits=15, verbose_name='Precio')),
                ('directores', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_tacticas', to='intendencia.directores', verbose_name='Directores')),
                ('vehiculo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_temporales', to='intendencia.inventariotactico', verbose_name='Vehículo Tactico')),
                ('jefes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_tacticas', to='intendencia.subjefes', verbose_name='Grupo de Trabajo')),
                ('unidad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_tacticas', to='intendencia.unidades', verbose_name='Unidad')),
            ],
        ),
        migrations.CreateModel(
            name='AsignacionAdministrativa',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_creacion', models.DateField(auto_now_add=True, verbose_name='Fecha de Creación')),
                ('comprobante', models.CharField(max_length=50, verbose_name='N° Comprobante')),
                ('precio', models.DecimalField(decimal_places=2, max_digits=15, verbose_name='Precio')),
                ('directores', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_admin', to='intendencia.directores', verbose_name='Directores')),
                ('vehiculo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_temporales', to='intendencia.inventarioadministrativo', verbose_name='Vehículo Administrativo')),
                ('jefes', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_admin', to='intendencia.subjefes', verbose_name='Grupo de Trabajo')),
                ('unidad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='asignaciones_admin', to='intendencia.unidades', verbose_name='Unidad')),
            ],
        ),
    ]
