# Generated by Django 3.2.7 on 2021-09-11 09:40

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='equipo',
            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')),
            ],
            options={
                'verbose_name': 'Equipo',
                'verbose_name_plural': 'Equipos',
                'ordering': ['nombre'],
            },
        ),
        migrations.CreateModel(
            name='marca',
            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')),
            ],
            options={
                'verbose_name': 'Marca',
                'verbose_name_plural': 'Marcas',
                'ordering': ['nombre'],
            },
        ),
        migrations.CreateModel(
            name='ubicacion',
            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')),
            ],
            options={
                'verbose_name': 'Ubicacion',
                'verbose_name_plural': 'Ubicacion',
                'ordering': ['nombre'],
            },
        ),
        migrations.CreateModel(
            name='pieza',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('n_pedido', models.CharField(blank=True, max_length=200, null=True, verbose_name='No. Pedido')),
                ('referencia', models.CharField(max_length=200, unique=True, verbose_name='Referencia')),
                ('descripcion_etiqueta', models.CharField(max_length=250, verbose_name='Descripción de Etiqueta')),
                ('descripcion_pieza', tinymce.models.HTMLField(verbose_name='Descripción de la Pieza')),
                ('estatus', models.CharField(choices=[('Nuevo', 'Nuevo'), ('Usado', 'Usado')], default='Nuevo', max_length=20, verbose_name='Estatus')),
                ('cantidad', models.IntegerField(verbose_name='Cantidad')),
                ('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')),
                ('Column1', models.CharField(blank=True, max_length=100, null=True, verbose_name='Column1')),
                ('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')),
                ('ubicacion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.ubicacion', verbose_name='Ubicacion')),
                ('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'pieza',
                'verbose_name_plural': 'piezas',
                'ordering': ['ubicacion'],
            },
        ),
    ]
