# Generated by Django 3.1.7 on 2021-05-20 08:10

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Autor',
            fields=[
                ('nombre', models.CharField(max_length=50, primary_key=True, serialize=False)),
            ],
        ),
        migrations.CreateModel(
            name='Libro',
            fields=[
                ('ISBN', models.CharField(max_length=13, primary_key=True, serialize=False)),
                ('pathLibro', models.CharField(max_length=200)),
                ('titulo', models.CharField(max_length=30)),
                ('portada', models.CharField(blank=True, max_length=200)),
                ('sinopsis', models.CharField(blank=True, max_length=1000)),
                ('formato', models.CharField(max_length=5)),
                ('autor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='libro.autor')),
            ],
        ),
        migrations.CreateModel(
            name='Genero',
            fields=[
                ('genero', models.CharField(max_length=15, primary_key=True, serialize=False)),
                ('Libro', models.ManyToManyField(blank=True, to='libro.Libro')),
            ],
        ),
    ]
