# Generated by Django 3.0.7 on 2020-06-14 05:47

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Author',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=100)),
                ('last_name', models.CharField(max_length=100)),
                ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='Date of Birth')),
                ('nation', models.CharField(choices=[('US', 'AMERICA'), ('VI', 'VIETNAM'), ('JP', 'JAPAN'), ('CN', 'CHINA')], default='US', max_length=2)),
            ],
            options={
                'ordering': ['first_name', 'last_name'],
            },
        ),
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('isbn', models.CharField(help_text='Enter 13 characters', max_length=13, verbose_name='ISBN')),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Author')),
            ],
            options={
                'ordering': ['title'],
            },
        ),
        migrations.CreateModel(
            name='Genre',
            fields=[
                ('name', models.CharField(max_length=100, primary_key=True, serialize=False)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='BookInstance',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, help_text='Unique ID for this book instance', primary_key=True, serialize=False, verbose_name='UUID')),
                ('imprint', models.CharField(max_length=200)),
                ('due_back', models.DateField(blank=True, null=True)),
                ('status', models.CharField(choices=[('m', 'Maintenance'), ('a', 'Available'), ('l', 'On loan'), ('r', 'Reserved')], default='m', help_text='Book availability', max_length=1)),
                ('book', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Book')),
            ],
            options={
                'ordering': ['due_back'],
            },
        ),
        migrations.AddField(
            model_name='book',
            name='genre',
            field=models.ManyToManyField(to='catalog.Genre'),
        ),
    ]

f31c5b237cb8e944f6120efedfb58b8d0b825218
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Author', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('first_name', models.CharField(
        max_length=100)), ('last_name', models.CharField(max_length=100)),
        ('date_of_birth', models.DateField(blank=True, null=True,
        verbose_name='Date of Birth')), ('nation', models.CharField(choices
        =[('US', 'AMERICA'), ('VI', 'VIETNAM'), ('JP', 'JAPAN'), ('CN',
        'CHINA')], default='US', max_length=2))], options={'ordering': [
        'first_name', 'last_name']}), migrations.CreateModel(name='Book',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('title', models.CharField(
        max_length=200)), ('isbn', models.CharField(help_text=
        'Enter 13 characters', max_length=13, verbose_name='ISBN')), (
        'author', models.ForeignKey(blank=True, null=True, on_delete=django
        .db.models.deletion.SET_NULL, to='catalog.Author'))], options={
        'ordering': ['title']}), migrations.CreateModel(name='Genre',
        fields=[('name', models.CharField(max_length=100, primary_key=True,
        serialize=False))], options={'ordering': ['name']}), migrations.
        CreateModel(name='BookInstance', fields=[('uuid', models.UUIDField(
        default=uuid.uuid4, help_text='Unique ID for this book instance',
        primary_key=True, serialize=False, verbose_name='UUID')), (
        'imprint', models.CharField(max_length=200)), ('due_back', models.
        DateField(blank=True, null=True)), ('status', models.CharField(
        choices=[('m', 'Maintenance'), ('a', 'Available'), ('l', 'On loan'),
        ('r', 'Reserved')], default='m', help_text='Book availability',
        max_length=1)), ('book', models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.SET_NULL, to='catalog.Book'))],
        options={'ordering': ['due_back']}), migrations.AddField(model_name
        ='book', name='genre', field=models.ManyToManyField(to=
        'catalog.Genre'))]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Author', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('first_name', models.CharField(
        max_length=100)), ('last_name', models.CharField(max_length=100)),
        ('date_of_birth', models.DateField(blank=True, null=True,
        verbose_name='Date of Birth')), ('nation', models.CharField(choices
        =[('US', 'AMERICA'), ('VI', 'VIETNAM'), ('JP', 'JAPAN'), ('CN',
        'CHINA')], default='US', max_length=2))], options={'ordering': [
        'first_name', 'last_name']}), migrations.CreateModel(name='Book',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('title', models.CharField(
        max_length=200)), ('isbn', models.CharField(help_text=
        'Enter 13 characters', max_length=13, verbose_name='ISBN')), (
        'author', models.ForeignKey(blank=True, null=True, on_delete=django
        .db.models.deletion.SET_NULL, to='catalog.Author'))], options={
        'ordering': ['title']}), migrations.CreateModel(name='Genre',
        fields=[('name', models.CharField(max_length=100, primary_key=True,
        serialize=False))], options={'ordering': ['name']}), migrations.
        CreateModel(name='BookInstance', fields=[('uuid', models.UUIDField(
        default=uuid.uuid4, help_text='Unique ID for this book instance',
        primary_key=True, serialize=False, verbose_name='UUID')), (
        'imprint', models.CharField(max_length=200)), ('due_back', models.
        DateField(blank=True, null=True)), ('status', models.CharField(
        choices=[('m', 'Maintenance'), ('a', 'Available'), ('l', 'On loan'),
        ('r', 'Reserved')], default='m', help_text='Book availability',
        max_length=1)), ('book', models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.SET_NULL, to='catalog.Book'))],
        options={'ordering': ['due_back']}), migrations.AddField(model_name
        ='book', name='genre', field=models.ManyToManyField(to=
        'catalog.Genre'))]

# Generated by Django 3.0.7 on 2020-06-14 05:47

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Author',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=100)),
                ('last_name', models.CharField(max_length=100)),
                ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='Date of Birth')),
                ('nation', models.CharField(choices=[('US', 'AMERICA'), ('VI', 'VIETNAM'), ('JP', 'JAPAN'), ('CN', 'CHINA')], default='US', max_length=2)),
            ],
            options={
                'ordering': ['first_name', 'last_name'],
            },
        ),
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('isbn', models.CharField(help_text='Enter 13 characters', max_length=13, verbose_name='ISBN')),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Author')),
            ],
            options={
                'ordering': ['title'],
            },
        ),
        migrations.CreateModel(
            name='Genre',
            fields=[
                ('name', models.CharField(max_length=100, primary_key=True, serialize=False)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='BookInstance',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, help_text='Unique ID for this book instance', primary_key=True, serialize=False, verbose_name='UUID')),
                ('imprint', models.CharField(max_length=200)),
                ('due_back', models.DateField(blank=True, null=True)),
                ('status', models.CharField(choices=[('m', 'Maintenance'), ('a', 'Available'), ('l', 'On loan'), ('r', 'Reserved')], default='m', help_text='Book availability', max_length=1)),
                ('book', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Book')),
            ],
            options={
                'ordering': ['due_back'],
            },
        ),
        migrations.AddField(
            model_name='book',
            name='genre',
            field=models.ManyToManyField(to='catalog.Genre'),
        ),
    ]
