# Generated by Django 3.2.7 on 2021-10-11 22:30

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='accesorios',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('folio', models.IntegerField(verbose_name='Folio')),
                ('ser_a_n_control', models.IntegerField(verbose_name='No Control')),
                ('cantidad', models.IntegerField(verbose_name='Cantidad')),
                ('n_parte', models.CharField(max_length=250, verbose_name='Número de Parte')),
                ('descripcion', models.CharField(max_length=250, verbose_name='Descripción')),
            ],
            options={
                'verbose_name': 'Accesorios de Ordenes',
                'verbose_name_plural': 'Accesorios de Ordenes',
                'ordering': ['-folio'],
            },
        ),
        migrations.CreateModel(
            name='falla',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=250, unique=True, verbose_name='Nombre')),
                ('otra', models.CharField(max_length=250, verbose_name='Especificar solo si selecciona: otra')),
            ],
            options={
                'verbose_name': 'Origen Falla',
                'verbose_name_plural': 'Origen Falla',
                'ordering': ['nombre'],
            },
        ),
        migrations.CreateModel(
            name='tiposervicio',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=250, unique=True, verbose_name='Nombre')),
            ],
            options={
                'verbose_name': 'Tipo de Servicio',
                'verbose_name_plural': 'Tipos de Servicios',
                'ordering': ['nombre'],
            },
        ),
        migrations.CreateModel(
            name='serviciorealizado',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('folio', models.IntegerField(verbose_name='Folio')),
                ('ser_s_n_control', models.IntegerField(verbose_name='No Control')),
                ('fecha', models.DateField(auto_now_add=True, verbose_name='Fecha')),
                ('descripcion', tinymce.models.HTMLField(verbose_name='Descripción del Servicio')),
                ('ib', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='IB')),
            ],
            options={
                'verbose_name': 'Servicios de las ordenes',
                'verbose_name_plural': 'Servicios de las ordenes',
                'ordering': ['-folio'],
            },
        ),
        migrations.CreateModel(
            name='ordenservicio',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('folio', models.IntegerField(unique=True, verbose_name='Folio')),
                ('fecha', models.DateField(auto_now_add=True, verbose_name='Fecha')),
                ('turno', models.CharField(max_length=50, verbose_name='Turno Hora')),
                ('reporta', models.CharField(max_length=250, verbose_name='Reporta')),
                ('orden_n_control', models.IntegerField(verbose_name='No Control')),
                ('n_reporte', models.CharField(max_length=250, verbose_name='NUMERO DE REPORTE')),
                ('falla_detectada', models.CharField(max_length=250, verbose_name='Falla Detectada')),
                ('materiales', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Materiales (electronico/Solvente/Adhesivo/Limpieza/Lubricantes/Surgistein)')),
                ('articulos', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Articulos de  limpieza y protección (Gasas/Guantes de latex/cubrebocas ) ')),
                ('equipos', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Equipos de Medicion (Multimetro/Tacometro/Termometro/Manometro/Corriente de Fuga)')),
                ('patrones', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Patrones para validacion ( Probador de descargas/Simulador de ECG,RESP,SP02, GASTO CARDIACO/Marco de Pesas)')),
                ('herramienta', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Herramienta (General, Electrica, Neumatica)')),
                ('estatus', models.CharField(choices=[('SI', 'SI'), ('NO', 'NO')], default='NO', max_length=11, verbose_name='Estatus CONCLUIDO?')),
                ('no_concluido', tinymce.models.HTMLField(blank=True, null=True, verbose_name='Especificar si no es Concluido:')),
                ('externo_empresa', models.CharField(blank=True, max_length=250, null=True, verbose_name='Nombre de la Empresa')),
                ('externo_orden', models.CharField(blank=True, max_length=250, null=True, verbose_name='No. de la Orden de Servicio')),
                ('externo_servicio', models.CharField(choices=[('Ninguno', 'Ninguno'), ('Contrato', 'Contrato'), ('Subrrogado', 'Subrrogado'), ('Evento', 'Evento')], default='Ninguno', max_length=13, verbose_name='Tipo de Servicio')),
                ('horas_ib1', models.IntegerField(blank=True, null=True, verbose_name='Horas Ingeniero IB1')),
                ('horas_ib2', models.IntegerField(blank=True, null=True, verbose_name='Horas Ingeniero IB2')),
                ('firma_area', models.CharField(blank=True, max_length=250, null=True, verbose_name='Nombre del Personal que Acepta')),
                ('val_serv', models.CharField(choices=[('Excelente', 'Excelente'), ('Regular', 'Regular'), ('Malo', 'Malo')], default='Excelente', max_length=13, verbose_name='Valoracion de Servicio')),
                ('observ_area', models.CharField(blank=True, max_length=250, null=True, verbose_name='OBSERVACIONES DE PERSONAL DEL AREA.')),
                ('firma_ib1', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='FIRMA IB1')),
                ('firma_ib2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='FIRMA IB2')),
                ('ib1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='IB1', to=settings.AUTH_USER_MODEL, verbose_name='Atiende IB1')),
                ('ib2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='IB2', to=settings.AUTH_USER_MODEL, verbose_name='Atiende IB2')),
                ('id_ib1', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='ID IB1')),
                ('id_ib2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='ID IB2')),
                ('origen_falla', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='servicios.falla', verbose_name='Origen de la Falla')),
                ('tipo_servicio', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='servicios.tiposervicio', verbose_name='Tipo de Servicio')),
            ],
            options={
                'verbose_name': 'Ordenes de Servicio',
                'verbose_name_plural': 'Ordenes de Servicios',
                'ordering': ['-folio'],
            },
        ),
    ]
