# Generated by Django 3.2.7 on 2021-09-13 07:51

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),
        ('inventarioalmacen', '0003_auto_20210912_0315'),
    ]

    operations = [
        migrations.CreateModel(
            name='rsalida',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('cantidad', models.IntegerField(verbose_name='Cantidad')),
                ('fecha_alta', models.DateField(auto_now_add=True, verbose_name='Fecha alta')),
                ('referencia', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.pieza', verbose_name='Referencia')),
                ('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Salida',
                'verbose_name_plural': 'Salidas',
                'ordering': ['-id'],
            },
        ),
        migrations.CreateModel(
            name='rentrada',
            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')),
                ('cantidad', models.IntegerField(verbose_name='Cantidad')),
                ('fecha_alta', models.DateField(auto_now_add=True, verbose_name='Fecha Entrada')),
                ('referencia', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventarioalmacen.pieza', verbose_name='Referencia')),
                ('usuario', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Entrada',
                'verbose_name_plural': 'Entradas',
                'ordering': ['-id'],
            },
        ),
    ]
