# Generated by Django 2.2.12 on 2020-05-01 03:34

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


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')),
                ('title', models.CharField(max_length=100)),
                ('description', models.TextField(max_length=2000)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('modified', models.DateTimeField(auto_now=True)),
                ('status', models.CharField(choices=[('To Do', 'To Do'), ('In Progress', 'In Progress'), ('Done', 'Done')], default='To Do', max_length=20)),
                ('priority', models.CharField(choices=[('Low', 'Low'), ('Medium', 'Medium'), ('High', 'High')], default='Low', max_length=20)),
                ('assignee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assigned', to=settings.AUTH_USER_MODEL)),
                ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issues', to=settings.AUTH_USER_MODEL)),
                ('linked_to', models.ManyToManyField(related_name='_issue_linked_to_+', to='issues.Issue')),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('content', models.TextField(max_length=1000)),
                ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)),
                ('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='issues.Issue')),
            ],
        ),
        migrations.CreateModel(
            name='Attachment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('file', models.FileField(upload_to='media/files')),
                ('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attachments', to='issues.Issue')),
            ],
        ),
    ]

[((248, 305), 'django.db.migrations.swappable_dependency', 'migrations.swappable_dependency', (['settings.AUTH_USER_MODEL'], {}), '(settings.AUTH_USER_MODEL)\n', (279, 305), False, 'from django.db import migrations, models\n'), ((435, 528), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (451, 528), False, 'from django.db import migrations, models\n'), ((553, 585), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)'}), '(max_length=100)\n', (569, 585), False, 'from django.db import migrations, models\n'), ((620, 653), 'django.db.models.TextField', 'models.TextField', ([], {'max_length': '(2000)'}), '(max_length=2000)\n', (636, 653), False, 'from django.db import migrations, models\n'), ((684, 723), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (704, 723), False, 'from django.db import migrations, models\n'), ((755, 790), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (775, 790), False, 'from django.db import migrations, models\n'), ((820, 953), 'django.db.models.CharField', 'models.CharField', ([], {'choices': "[('To Do', 'To Do'), ('In Progress', 'In Progress'), ('Done', 'Done')]", 'default': '"""To Do"""', 'max_length': '(20)'}), "(choices=[('To Do', 'To Do'), ('In Progress', 'In Progress'\n    ), ('Done', 'Done')], default='To Do', max_length=20)\n", (836, 953), False, 'from django.db import migrations, models\n'), ((980, 1096), 'django.db.models.CharField', 'models.CharField', ([], {'choices': "[('Low', 'Low'), ('Medium', 'Medium'), ('High', 'High')]", 'default': '"""Low"""', 'max_length': '(20)'}), "(choices=[('Low', 'Low'), ('Medium', 'Medium'), ('High',\n    'High')], default='Low', max_length=20)\n", (996, 1096), False, 'from django.db import migrations, models\n'), ((1124, 1245), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""assigned"""', 'to': 'settings.AUTH_USER_MODEL'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='assigned', to=settings.AUTH_USER_MODEL)\n", (1141, 1245), False, 'from django.db import migrations, models\n'), ((1271, 1390), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""issues"""', 'to': 'settings.AUTH_USER_MODEL'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='issues', to=settings.AUTH_USER_MODEL)\n", (1288, 1390), False, 'from django.db import migrations, models\n'), ((1418, 1494), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'related_name': '"""_issue_linked_to_+"""', 'to': '"""issues.Issue"""'}), "(related_name='_issue_linked_to_+', to='issues.Issue')\n", (1440, 1494), False, 'from django.db import migrations, models\n'), ((1627, 1720), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1643, 1720), False, 'from django.db import migrations, models\n'), ((1747, 1786), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (1767, 1786), False, 'from django.db import migrations, models\n'), ((1817, 1850), 'django.db.models.TextField', 'models.TextField', ([], {'max_length': '(1000)'}), '(max_length=1000)\n', (1833, 1850), False, 'from django.db import migrations, models\n'), ((1881, 2002), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""comments"""', 'to': 'settings.AUTH_USER_MODEL'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='comments', to=settings.AUTH_USER_MODEL)\n", (1898, 2002), False, 'from django.db import migrations, models\n'), ((2026, 2137), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""comments"""', 'to': '"""issues.Issue"""'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='comments', to='issues.Issue')\n", (2043, 2137), False, 'from django.db import migrations, models\n'), ((2268, 2361), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (2284, 2361), False, 'from django.db import migrations, models\n'), ((2385, 2426), 'django.db.models.FileField', 'models.FileField', ([], {'upload_to': '"""media/files"""'}), "(upload_to='media/files')\n", (2401, 2426), False, 'from django.db import migrations, models\n'), ((2455, 2569), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""attachments"""', 'to': '"""issues.Issue"""'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='attachments', to='issues.Issue')\n", (2472, 2569), False, 'from django.db import migrations, models\n')]