# Generated by Django 4.2.1 on 2023-05-26 21:14 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), ("contenttypes", "0002_remove_content_type_name"), ("events", "0025_remove_userroute_user_and_more"), ] operations = [ migrations.CreateModel( name="BaseUserRouteDatePoint", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("duration", models.IntegerField()), ], options={ "abstract": False, "base_manager_name": "objects", }, ), migrations.CreateModel( name="UserRoute", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("created", models.DateTimeField(auto_now_add=True)), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="routes", to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name="UserRouteTransaction", fields=[ ( "baseuserroutedatepoint_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="events.baseuserroutedatepoint", ), ), ("distance", models.FloatField()), ], options={ "abstract": False, "base_manager_name": "objects", }, bases=("events.baseuserroutedatepoint",), ), migrations.CreateModel( name="UserRouteDate", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("date", models.DateField()), ( "route", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="dates", to="events.userroute", ), ), ], options={ "unique_together": {("date", "route")}, }, ), migrations.AddField( model_name="baseuserroutedatepoint", name="date", field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="points", to="events.userroutedate", ), ), migrations.AddField( model_name="baseuserroutedatepoint", name="polymorphic_ctype", field=models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="polymorphic_%(app_label)s.%(class)s_set+", to="contenttypes.contenttype", ), ), migrations.CreateModel( name="UserRoutePoint", fields=[ ( "baseuserroutedatepoint_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="events.baseuserroutedatepoint", ), ), ("point_type", models.CharField(max_length=250)), ( "point", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="events.basepoint", ), ), ], options={ "abstract": False, "base_manager_name": "objects", }, bases=("events.baseuserroutedatepoint",), ), ]