# Generated by Django 3.2.7 on 2021-10-06 12:24

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('inventarioalmacen', '0007_area'),
    ]

    operations = [
        migrations.CreateModel(
            name='invequipo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('estado_funcional', models.CharField(choices=[('Funcionando', 'Funcionando'), ('No Funcionando', 'No Funcionando')], default='Funcionando', max_length=20, verbose_name='Estado Funcional')),
                ('n_control', models.IntegerField(unique=True, verbose_name='No Control')),
                ('descripcion', tinymce.models.HTMLField(verbose_name='Descripción')),
                ('modelo', models.CharField(blank=True, max_length=250, null=True, verbose_name='Modelo')),
                ('n_serie', models.CharField(max_length=250, unique=True, verbose_name='No Serie')),
                ('accesorios', models.CharField(blank=True, max_length=250, null=True, verbose_name='Accesorios')),
                ('obsoleto', models.CharField(blank=True, max_length=250, null=True, verbose_name='Obsoleto')),
                ('inventariado', models.CharField(blank=True, max_length=250, null=True, verbose_name='Inventariado')),
                ('n_act_fijo', models.CharField(blank=True, max_length=250, null=True, verbose_name='Numero Activo Fijo')),
                ('provedor', models.CharField(blank=True, max_length=250, null=True, verbose_name='Provedor')),
                ('c_basico', models.CharField(blank=True, max_length=250, null=True, verbose_name='Clave de cuadro basico')),
                ('fecha_alta', models.DateField(auto_now_add=True, verbose_name='Fecha alta')),
                ('fecha_actualizacion', models.DateField(auto_now=True, verbose_name='Fecha de Actualización')),
                ('area', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.area', verbose_name='Area')),
                ('equipo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.equipo', verbose_name='Equipo')),
                ('marca', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.marca', verbose_name='Marca')),
            ],
            options={
                'verbose_name': 'Equipo',
                'verbose_name_plural': 'Equipos',
                'ordering': ['n_control'],
            },
        ),
    ]
