text: # Generated by Django 3.2.7 on 2021-12-03 07:44
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Category',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='Task',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('pub_date', models.DateTimeField(auto_now_add=True, verbose_name='Дата добавления')),
                  ('text', models.TextField(help_text='Введите текст задачи', verbose_name='Текст задачи')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to=settings.AUTH_USER_MODEL, verbose_name='Автор')),
                  ('category', models.ForeignKey(help_text='Выберите категорию', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tasks', to='todo.category', verbose_name='Категория')),
              ],
              options={
                  'ordering': ['-pub_date'],
              },
          ),
      ]
  