# Generated by Django 2.2.12 on 2020-06-23 09:52

import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('books', '0021_auto_20200520_0954'),
    ]

    operations = [
        migrations.CreateModel(
            name='RecentModule',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('visited', models.DateTimeField(default=datetime.datetime.now)),
                ('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='books.Module')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
