text: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.1 on 2016-01-30 19:14
  from __future__ import unicode_literals
  
  import autoslug.fields
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django.utils.timezone
  import enumfields.fields
  import wurst.core.consts
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Issue',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('key', models.CharField(db_index=True, max_length=32, unique=True)),
                  ('title', models.CharField(max_length=140)),
                  ('description', models.TextField(blank=True)),
                  ('start_date', models.DateField(blank=True, null=True)),
                  ('due_date', models.DateField(blank=True, null=True)),
                  ('created', models.DateTimeField(db_index=True, default=django.utils.timezone.now, editable=False)),
                  ('assignee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='issues_assigned', to=settings.AUTH_USER_MODEL)),
                  ('creator', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='issues_created', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='IssueType',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
                  ('nouns', models.TextField(blank=True)),
              ],
          ),
          migrations.CreateModel(
              name='Priority',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
                  ('nouns', models.TextField(blank=True)),
                  ('value', models.IntegerField(db_index=True, default=0)),
              ],
          ),
          migrations.CreateModel(
              name='Project',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
                  ('prefix', models.CharField(max_length=10, unique=True)),
              ],
          ),
          migrations.CreateModel(
              name='Status',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
                  ('category', enumfields.fields.EnumIntegerField(db_index=True, default=0, enum=wurst.core.consts.StatusCategory)),
                  ('value', models.IntegerField(db_index=True, default=0)),
              ],
          ),
          migrations.AddField(
              model_name='issue',
              name='priority',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='wurst.Priority'),
          ),
          migrations.AddField(
              model_name='issue',
              name='project',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='wurst.Project'),
          ),
          migrations.AddField(
              model_name='issue',
              name='status',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='wurst.Status'),
          ),
          migrations.AddField(
              model_name='issue',
              name='type',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to='wurst.IssueType'),
          ),
      ]
  