# Generated by Django 3.2.6 on 2021-09-14 19:35

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('Education', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=1000)),
                ('rented', models.BooleanField(default=False)),
                ('study_field', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Education.studyfield')),
            ],
        ),
        migrations.CreateModel(
            name='Rent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('active', models.BooleanField(default=True)),
                ('date', models.DateField(default=django.utils.timezone.now)),
                ('book', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, to='library.book')),
                ('student', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, to='Education.student')),
            ],
        ),
    ]
