# Generated by Django 4.0.2 on 2022-04-11 02:32

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('servicios', '0011_accesorios_n_reporte_serviciorealizado_n_reporte'),
    ]

    operations = [
        migrations.AlterField(
            model_name='accesorios',
            name='n_reporte',
            field=models.CharField(blank=True, default='', max_length=250, null=True, verbose_name='NUMERO DE REPORTE'),
        ),
        migrations.AlterField(
            model_name='ordenservicio',
            name='estatus',
            field=models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='SI', max_length=11, verbose_name='Estatus CONCLUIDO?'),
        ),
        migrations.AlterField(
            model_name='ordenservicio',
            name='firma_ib1',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='FIRMA IB1'),
        ),
        migrations.AlterField(
            model_name='ordenservicio',
            name='horas_ib1',
            field=models.IntegerField(default=0, verbose_name='Horas Ingeniero IB1'),
        ),
        migrations.AlterField(
            model_name='ordenservicio',
            name='id_ib1',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='ID IB1'),
        ),
        migrations.AlterField(
            model_name='serviciorealizado',
            name='n_reporte',
            field=models.CharField(blank=True, default='', max_length=250, null=True, verbose_name='NUMERO DE REPORTE'),
        ),
        migrations.CreateModel(
            name='refacciones',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('referencia', models.CharField(max_length=250, verbose_name='Referencia')),
                ('n_reporte', models.CharField(blank=True, default='', max_length=250, null=True, verbose_name='No. de Reporte')),
                ('cantidad', models.IntegerField(verbose_name='Cantidad')),
                ('fecharegis', models.DateField(auto_now_add=True, null=True, verbose_name='Fecha')),
                ('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='USUARIO')),
            ],
            options={
                'verbose_name': 'refaccion',
                'verbose_name_plural': 'refacciones',
                'ordering': ['-id'],
            },
        ),
        migrations.CreateModel(
            name='preventivo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('n_control', models.IntegerField(verbose_name='No Control del Equipo')),
                ('fecha_start', models.DateField(verbose_name='FECHA INICIO')),
                ('fecha_end', models.DateField(verbose_name='FECHA TERMINO')),
                ('notas', models.CharField(max_length=250, verbose_name='Notas')),
                ('fecha_add', models.DateField(auto_now_add=True, null=True, verbose_name='Fecha de registro')),
                ('estatus', models.CharField(choices=[('PENDIENTE', 'PENDIENTE'), ('REALIZADO', 'REALIZADO')], default='PENDIENTE', max_length=11, verbose_name='Estatus?')),
                ('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='Realizara')),
            ],
            options={
                'verbose_name': 'Mantenimiento',
                'verbose_name_plural': 'Mantenimientos',
                'ordering': ['-id'],
            },
        ),
    ]
