# Generated by Django 2.2.4 on 2021-03-02 21:02

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('login_app', '0002_user_username'),
    ]

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('year', models.IntegerField()),
                ('description', models.TextField()),
                ('author_firstname', models.CharField(max_length=255)),
                ('author_lastname', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Parent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contents', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Shelf',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('books', models.ManyToManyField(related_name='shelves', to='books_app.Book')),
                ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shelves', to='login_app.User')),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contents', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('commenter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='login_app.User')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='books_app.Parent')),
            ],
        ),
        migrations.CreateModel(
            name='WallPost',
            fields=[
                ('parent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='books_app.Parent')),
                ('poster', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='login_app.User')),
                ('wall', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts_on_wall', to='login_app.User')),
            ],
            bases=('books_app.parent',),
        ),
        migrations.CreateModel(
            name='Review',
            fields=[
                ('parent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='books_app.Parent')),
                ('stars', models.IntegerField()),
                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='books_app.Book')),
                ('reviewer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='login_app.User')),
            ],
            bases=('books_app.parent',),
        ),
    ]

cfe406b0347310a8ed2ea16551cff44f90284ef4
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('login_app', '0002_user_username')]
    operations = [migrations.CreateModel(name='Book', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=255)), (
        'year', models.IntegerField()), ('description', models.TextField()),
        ('author_firstname', models.CharField(max_length=255)), (
        'author_lastname', models.CharField(max_length=255)), ('created_at',
        models.DateTimeField(auto_now_add=True)), ('updated_at', models.
        DateTimeField(auto_now=True))]), migrations.CreateModel(name=
        'Parent', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('contents',
        models.TextField()), ('created_at', models.DateTimeField(
        auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=
        True))]), migrations.CreateModel(name='Shelf', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=
        255)), ('created_at', models.DateTimeField(auto_now_add=True)), (
        'updated_at', models.DateTimeField(auto_now=True)), ('books',
        models.ManyToManyField(related_name='shelves', to='books_app.Book')
        ), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='shelves', to='login_app.User'))]),
        migrations.CreateModel(name='Comment', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('contents', models.TextField()), (
        'created_at', models.DateTimeField(auto_now_add=True)), (
        'updated_at', models.DateTimeField(auto_now=True)), ('commenter',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='comments', to='login_app.User')), ('parent', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='comments', to='books_app.Parent'))]), migrations.
        CreateModel(name='WallPost', fields=[('parent_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to='books_app.Parent')), ('poster', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='posts',
        to='login_app.User')), ('wall', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='posts_on_wall', to=
        'login_app.User'))], bases=('books_app.parent',)), migrations.
        CreateModel(name='Review', fields=[('parent_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to='books_app.Parent')), ('stars', models.IntegerField()), (
        'book', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='reviews', to='books_app.Book')), ('reviewer',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='reviews', to='login_app.User'))], bases=(
        'books_app.parent',))]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = [('login_app', '0002_user_username')]
    operations = [migrations.CreateModel(name='Book', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('title', models.CharField(max_length=255)), (
        'year', models.IntegerField()), ('description', models.TextField()),
        ('author_firstname', models.CharField(max_length=255)), (
        'author_lastname', models.CharField(max_length=255)), ('created_at',
        models.DateTimeField(auto_now_add=True)), ('updated_at', models.
        DateTimeField(auto_now=True))]), migrations.CreateModel(name=
        'Parent', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('contents',
        models.TextField()), ('created_at', models.DateTimeField(
        auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=
        True))]), migrations.CreateModel(name='Shelf', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=
        255)), ('created_at', models.DateTimeField(auto_now_add=True)), (
        'updated_at', models.DateTimeField(auto_now=True)), ('books',
        models.ManyToManyField(related_name='shelves', to='books_app.Book')
        ), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='shelves', to='login_app.User'))]),
        migrations.CreateModel(name='Comment', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('contents', models.TextField()), (
        'created_at', models.DateTimeField(auto_now_add=True)), (
        'updated_at', models.DateTimeField(auto_now=True)), ('commenter',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='comments', to='login_app.User')), ('parent', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='comments', to='books_app.Parent'))]), migrations.
        CreateModel(name='WallPost', fields=[('parent_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to='books_app.Parent')), ('poster', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='posts',
        to='login_app.User')), ('wall', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='posts_on_wall', to=
        'login_app.User'))], bases=('books_app.parent',)), migrations.
        CreateModel(name='Review', fields=[('parent_ptr', models.
        OneToOneField(auto_created=True, on_delete=django.db.models.
        deletion.CASCADE, parent_link=True, primary_key=True, serialize=
        False, to='books_app.Parent')), ('stars', models.IntegerField()), (
        'book', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='reviews', to='books_app.Book')), ('reviewer',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='reviews', to='login_app.User'))], bases=(
        'books_app.parent',))]

# Generated by Django 2.2.4 on 2021-03-02 21:02

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('login_app', '0002_user_username'),
    ]

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('year', models.IntegerField()),
                ('description', models.TextField()),
                ('author_firstname', models.CharField(max_length=255)),
                ('author_lastname', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Parent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contents', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Shelf',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('books', models.ManyToManyField(related_name='shelves', to='books_app.Book')),
                ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shelves', to='login_app.User')),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contents', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('commenter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='login_app.User')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='books_app.Parent')),
            ],
        ),
        migrations.CreateModel(
            name='WallPost',
            fields=[
                ('parent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='books_app.Parent')),
                ('poster', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='login_app.User')),
                ('wall', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts_on_wall', to='login_app.User')),
            ],
            bases=('books_app.parent',),
        ),
        migrations.CreateModel(
            name='Review',
            fields=[
                ('parent_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='books_app.Parent')),
                ('stars', models.IntegerField()),
                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='books_app.Book')),
                ('reviewer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='login_app.User')),
            ],
            bases=('books_app.parent',),
        ),
    ]
