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.

55 lines
2.3 KiB

5 years ago
5 years ago
5 years ago
  1. # Generated by Django 2.1.11 on 2019-12-11 22:11
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('api', '0001_initial'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='Speech2textAnnotation',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('prob', models.FloatField(default=0.0)),
  16. ('manual', models.BooleanField(default=False)),
  17. ('created_at', models.DateTimeField(auto_now_add=True)),
  18. ('updated_at', models.DateTimeField(auto_now=True)),
  19. ('text', models.TextField()),
  20. ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
  21. related_name='speech2text_annotations', to='api.Document')),
  22. ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  23. ],
  24. ),
  25. migrations.CreateModel(
  26. name='Speech2textProject',
  27. fields=[
  28. ('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE,
  29. parent_link=True, primary_key=True, serialize=False,
  30. to='api.Project')),
  31. ],
  32. options={
  33. 'abstract': False,
  34. 'base_manager_name': 'objects',
  35. },
  36. bases=('api.project',),
  37. ),
  38. migrations.AlterField(
  39. model_name='project',
  40. name='project_type',
  41. field=models.CharField(choices=[('DocumentClassification', 'document classification'),
  42. ('SequenceLabeling', 'sequence labeling'),
  43. ('Seq2seq', 'sequence to sequence'),
  44. ('Speech2text', 'speech to text')], max_length=30),
  45. ),
  46. migrations.AlterUniqueTogether(
  47. name='speech2textannotation',
  48. unique_together={('document', 'user')},
  49. ),
  50. ]