text: # Generated by Django 4.0.2 on 2022-03-24 09:15
  
  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='Food',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=100)),
              ],
          ),
          migrations.CreateModel(
              name='Review',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('author_name', models.CharField(default='Anonymní', max_length=40)),
                  ('comment', models.CharField(max_length=1000)),
                  ('ratings', models.IntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])),
                  ('food', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='reviews.food')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  