# Generated by Django 3.2 on 2021-04-08 14:02

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]

    operations = [
        migrations.CreateModel(
            name="Book",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                ("title", models.CharField(max_length=99)),
                ("author", models.CharField(max_length=99)),
                ("description", models.TextField(blank=True, null=True)),
            ],
            options={"abstract": False},
        ),
        migrations.CreateModel(
            name="BookRent",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                (
                    "days_rented",
                    models.PositiveIntegerField(
                        default=1,
                        validators=[
                            django.core.validators.MinValueValidator(1)
                        ],
                    ),
                ),
                ("books", models.ManyToManyField(to="books.Book")),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.PROTECT,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={"abstract": False},
        ),
    ]

6e5b0df210deabf2627d8127de4f2d5b6d397292
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Book', fields=[('id', models
        .UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('created', models.DateTimeField(auto_now_add=
        True)), ('updated', models.DateTimeField(auto_now=True)), ('title',
        models.CharField(max_length=99)), ('author', models.CharField(
        max_length=99)), ('description', models.TextField(blank=True, null=
        True))], options={'abstract': False}), migrations.CreateModel(name=
        'BookRent', fields=[('id', models.UUIDField(default=uuid.uuid4,
        editable=False, primary_key=True, serialize=False)), ('created',
        models.DateTimeField(auto_now_add=True)), ('updated', models.
        DateTimeField(auto_now=True)), ('days_rented', models.
        PositiveIntegerField(default=1, validators=[django.core.validators.
        MinValueValidator(1)])), ('books', models.ManyToManyField(to=
        'books.Book')), ('user', models.ForeignKey(on_delete=django.db.
        models.deletion.PROTECT, to=settings.AUTH_USER_MODEL))], options={
        'abstract': False})]

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Book', fields=[('id', models
        .UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('created', models.DateTimeField(auto_now_add=
        True)), ('updated', models.DateTimeField(auto_now=True)), ('title',
        models.CharField(max_length=99)), ('author', models.CharField(
        max_length=99)), ('description', models.TextField(blank=True, null=
        True))], options={'abstract': False}), migrations.CreateModel(name=
        'BookRent', fields=[('id', models.UUIDField(default=uuid.uuid4,
        editable=False, primary_key=True, serialize=False)), ('created',
        models.DateTimeField(auto_now_add=True)), ('updated', models.
        DateTimeField(auto_now=True)), ('days_rented', models.
        PositiveIntegerField(default=1, validators=[django.core.validators.
        MinValueValidator(1)])), ('books', models.ManyToManyField(to=
        'books.Book')), ('user', models.ForeignKey(on_delete=django.db.
        models.deletion.PROTECT, to=settings.AUTH_USER_MODEL))], options={
        'abstract': False})]

# Generated by Django 3.2 on 2021-04-08 14:02

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]

    operations = [
        migrations.CreateModel(
            name="Book",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                ("title", models.CharField(max_length=99)),
                ("author", models.CharField(max_length=99)),
                ("description", models.TextField(blank=True, null=True)),
            ],
            options={"abstract": False},
        ),
        migrations.CreateModel(
            name="BookRent",
            fields=[
                (
                    "id",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                (
                    "days_rented",
                    models.PositiveIntegerField(
                        default=1,
                        validators=[
                            django.core.validators.MinValueValidator(1)
                        ],
                    ),
                ),
                ("books", models.ManyToManyField(to="books.Book")),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.PROTECT,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={"abstract": False},
        ),
    ]
