# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django_extensions.db.fields
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        ('sync', '0001_initial'),
        ('contenttypes', '0002_remove_content_type_name'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('trainings', '0014_add_assessments_stuff'),
        ('assessments', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='AssessableActivityUserScore',
            fields=[
                ('id', django_extensions.db.fields.UUIDField(primary_key=True, editable=False, serialize=False, blank=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('score', models.IntegerField()),
                ('activity_id', django_extensions.db.fields.UUIDField(editable=False, blank=True)),
                ('points', models.IntegerField(null=True, blank=True)),
                ('activity_type', models.ForeignKey(related_name='scores_on', to='contenttypes.ContentType')),
                ('first_update', models.ForeignKey(related_name='assessableactivityuserscore_by_first', blank=True, null=True, to='sync.Update')),
                ('last_update', models.ForeignKey(related_name='assessableactivityuserscore_by_last', blank=True, null=True, to='sync.Update')),
                ('session', models.ForeignKey(to='trainings.TrainingSession')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'activity part score',
                'verbose_name_plural': 'activity part scores',
            },
        ),
        migrations.AlterField(
            model_name='assessableactivitypartuserscore',
            name='activity_part_type',
            field=models.ForeignKey(related_name='part_scores_on', to='contenttypes.ContentType'),
        ),
    ]
