# Generated by Django 2.1 on 2020-11-08 12:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('projects', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('description', models.TextField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Role',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('proj', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')),
                ('staff', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='projects.Staff')),
            ],
        ),
        migrations.CreateModel(
            name='Stage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=256)),
                ('start_plan', models.DateField(blank=True, null=True)),
                ('start_fact', models.DateField(blank=True, null=True)),
                ('end_plan', models.DateField(blank=True, null=True)),
                ('end_fact', models.DateField(blank=True, null=True)),
                ('exp_plan', models.DecimalField(decimal_places=2, default=1.0, max_digits=11)),
                ('exp_fact', models.DecimalField(decimal_places=2, default=1.0, max_digits=11)),
                ('is_completed', models.BooleanField(default=False)),
                ('proj', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')),
            ],
        ),
        migrations.AddField(
            model_name='role',
            name='stages',
            field=models.ManyToManyField(blank=True, to='projects.Stage'),
        ),
    ]
