# Generated by Django 3.0.6 on 2020-05-26 17:38

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('database', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='DetectionScore',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateTimeField(auto_now_add=True, verbose_name='Date of classified')),
                ('kind', models.CharField(choices=[('b', 'Build-in'), ('c', 'Classification by user'), ('cs', 'Scaled classification (1 to 5)'), ('co', 'One class'), ('o', 'Others')], max_length=2)),
                ('score', models.FloatField(default=1)),
                ('verified', models.BooleanField(default=False)),
                ('detection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='database.Detection', verbose_name='Detection')),
            ],
            options={
                'verbose_name': 'Classified detection',
                'verbose_name_plural': 'Classified detections',
                'default_permissions': ('view', 'add', 'change', 'delete'),
            },
        ),
    ]
