# Generated by Django 4.1.10 on 2023-07-24 05:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ("projects", "0008_project_allow_member_to_create_label_type_and_more"), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("examples", "0007_example_score"), ] operations = [ migrations.CreateModel( name="Assignment", fields=[ ("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ("created_at", models.DateTimeField(auto_now_add=True, db_index=True)), ("updated_at", models.DateTimeField(auto_now=True)), ( "assignee", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ( "example", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="assignments", to="examples.example" ), ), ( "project", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="assignments", to="projects.project" ), ), ], options={ "unique_together": {("example", "assignee")}, }, ), ]