<gh_stars>1-10
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-15 16:56
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import jsonfield.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='ActivityOccurrenceState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('activity_slug', models.CharField(max_length=50)),
                ('started', models.DateTimeField(default=django.utils.timezone.now)),
                ('completed', models.DateTimeField(null=True)),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ActivityState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('activity_slug', models.CharField(max_length=50)),
                ('completed_count', models.IntegerField(default=0)),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='activitystate',
            unique_together=set([('user', 'activity_slug')]),
        ),
        migrations.AlterUniqueTogether(
            name='activityoccurrencestate',
            unique_together=set([('user', 'activity_slug', 'started')]),
        ),
    ]

# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-15 16:56
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import jsonfield.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='ActivityOccurrenceState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('activity_slug', models.CharField(max_length=50)),
                ('started', models.DateTimeField(default=django.utils.timezone.now)),
                ('completed', models.DateTimeField(null=True)),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ActivityState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('activity_slug', models.CharField(max_length=50)),
                ('completed_count', models.IntegerField(default=0)),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='UserState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data', jsonfield.fields.JSONField()),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='activitystate',
            unique_together=set([('user', 'activity_slug')]),
        ),
        migrations.AlterUniqueTogether(
            name='activityoccurrencestate',
            unique_together=set([('user', 'activity_slug', 'started')]),
        ),
    ]
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-15 16:56