text: # Generated by Django 2.2.6 on 2020-03-23 18:22
  
  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),
          ('trips', '0004_auto_20200322_1901'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Report',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_time', models.DateTimeField(auto_now_add=True)),
              ],
          ),
          migrations.AlterUniqueTogether(
              name='trip',
              unique_together=set(),
          ),
          migrations.AddConstraint(
              model_name='trip',
              constraint=models.UniqueConstraint(fields=('date', 'car', 'way'), name='unique_daily_trip_per_way_car'),
          ),
          migrations.AddField(
              model_name='report',
              name='creator',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reports', to=settings.AUTH_USER_MODEL),
          ),
          migrations.AddField(
              model_name='trip',
              name='report',
              field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='trips', to='trips.Report'),
          ),
      ]
  