# Generated by Django 3.1.2 on 2020-11-15 03:59

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


class Migration(migrations.Migration):

    dependencies = [
        ('library', '0006_ventas'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='ventas',
            name='fecha',
        ),
        migrations.AlterField(
            model_name='ventas',
            name='hora',
            field=models.DateTimeField(verbose_name='Fecha y Hora de la venta'),
        ),
        migrations.CreateModel(
            name='Productos',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=255, verbose_name='Nombre del producto')),
                ('Precio', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='Precio')),
                ('categoria_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='library.categoria', verbose_name='Categoria')),
                ('inventario_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='library.inventario', verbose_name='Inventario')),
                ('ventas_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='library.ventas', verbose_name='Ventas')),
            ],
            options={
                'verbose_name': 'Producto',
                'verbose_name_plural': 'Productos',
            },
        ),
    ]
