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.

37 lines
1.4 KiB

  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. ('id',
  16. models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('model_name', models.CharField(max_length=100)),
  18. ('model_attrs', models.JSONField(default=dict)),
  19. ('template', models.TextField(default='')),
  20. ('label_mapping', models.JSONField(blank=True, default=dict)),
  21. ('default', models.BooleanField(default=False)),
  22. ('created_at', models.DateTimeField(auto_now_add=True)),
  23. ('updated_at', models.DateTimeField(auto_now=True)),
  24. ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
  25. related_name='auto_labeling_config', to='api.project')),
  26. ],
  27. ),
  28. ],
  29. database_operations=[]
  30. )
  31. ]