You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.7 KiB

  1. # Generated by Django 4.0.4 on 2022-06-30 05:24
  2. import uuid
  3. import django.db.models.deletion
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ("examples", "0006_alter_example_upload_name"),
  9. ("label_types", "0007_delete_relationtypeold"),
  10. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  11. ("labels", "0015_create_boundingbox_table"),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name="Segmentation",
  16. fields=[
  17. ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
  18. ("uuid", models.UUIDField(default=uuid.uuid4, unique=True)),
  19. ("prob", models.FloatField(default=0.0)),
  20. ("manual", models.BooleanField(default=False)),
  21. ("created_at", models.DateTimeField(auto_now_add=True)),
  22. ("updated_at", models.DateTimeField(auto_now=True)),
  23. ("points", models.JSONField(default=list)),
  24. (
  25. "example",
  26. models.ForeignKey(
  27. on_delete=django.db.models.deletion.CASCADE, related_name="segmentations", to="examples.example"
  28. ),
  29. ),
  30. (
  31. "label",
  32. models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="label_types.categorytype"),
  33. ),
  34. ("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  35. ],
  36. options={
  37. "abstract": False,
  38. },
  39. ),
  40. ]