# Generated by Django 2.1.7 on 2019-05-21 00:28

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('events', '0006_attendance_max_capacity'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('ideas', '0009_merge_20190515_0422'),
    ]

    operations = [
        migrations.CreateModel(
            name='Assessment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('weight', models.PositiveIntegerField(default=1)),
                ('is_for_jury', models.BooleanField(default=False)),
                ('is_for_evaluation_committee', models.BooleanField(default=False)),
                ('is_for_HR', models.BooleanField(default=False)),
                ('is_for_team_leader', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='ProjectAssessment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('value', models.PositiveIntegerField(default=0)),
                ('assessment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.Assessment')),
                ('evaluator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('idea', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ideas.Idea')),
            ],
        ),
        migrations.CreateModel(
            name='RegistrantAssessment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('value', models.PositiveIntegerField(default=0)),
                ('assessment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.Assessment')),
                ('evaluator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('registrant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Registrant')),
            ],
        ),
        migrations.CreateModel(
            name='RegistrantComment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('comment_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('registrant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Registrant')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='registrantcomment',
            unique_together={('registrant', 'comment_by')},
        ),
        migrations.AlterUniqueTogether(
            name='registrantassessment',
            unique_together={('assessment', 'registrant', 'evaluator')},
        ),
        migrations.AlterUniqueTogether(
            name='projectassessment',
            unique_together={('assessment', 'idea', 'evaluator')},
        ),
    ]
