text: # Generated by Django 3.2 on 2021-04-14 22:13
  
  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),
          ('blog', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Comment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('date_add', models.DateTimeField(auto_now=True, verbose_name='Время изменения')),
                  ('message', models.TextField(blank=True, default='', verbose_name='Текст комментария')),
                  ('rating', models.IntegerField(choices=[(0, 'Без оценки'), (1, 'Ужасно'), (2, 'Плохо'), (3, 'Нормально'), (4, 'Хорошо'), (5, 'Отлично')], default=0, verbose_name='Оценка')),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.tablo')),
              ],
          ),
      ]
  