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.

47 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  1. # Generated by Django 3.2.11 on 2022-01-20 04:17
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ("api", "0030_delete_autolabelingconfig"),
  8. ]
  9. operations = [
  10. migrations.SeparateDatabaseAndState(
  11. state_operations=[
  12. migrations.CreateModel(
  13. name="AutoLabelingConfig",
  14. fields=[
  15. (
  16. "id",
  17. models.BigAutoField(
  18. auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
  19. ),
  20. ),
  21. ("model_name", models.CharField(max_length=100)),
  22. ("model_attrs", models.JSONField(default=dict)),
  23. ("template", models.TextField(default="")),
  24. ("label_mapping", models.JSONField(blank=True, default=dict)),
  25. ("default", models.BooleanField(default=False)),
  26. ("created_at", models.DateTimeField(auto_now_add=True)),
  27. ("updated_at", models.DateTimeField(auto_now=True)),
  28. (
  29. "project",
  30. models.ForeignKey(
  31. on_delete=django.db.models.deletion.CASCADE,
  32. related_name="auto_labeling_config",
  33. to="api.project",
  34. ),
  35. ),
  36. ],
  37. ),
  38. ],
  39. database_operations=[],
  40. )
  41. ]