text: # Generated by Django 2.2.9 on 2020-04-01 08:03
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django_extensions.db.fields
  import mptt.fields
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Staff',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('name', models.CharField(max_length=128)),
              ],
              options={
                  'ordering': ('-modified', '-created'),
                  'get_latest_by': 'modified',
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='WBS',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('code', models.CharField(max_length=16)),
                  ('name', models.CharField(max_length=128)),
                  ('pv', models.FloatField(default=0)),
                  ('ev', models.FloatField(default=0)),
                  ('lft', models.PositiveIntegerField(editable=False)),
                  ('rght', models.PositiveIntegerField(editable=False)),
                  ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                  ('level', models.PositiveIntegerField(editable=False)),
                  ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='djpmp.WBS')),
              ],
              options={
                  'ordering': ('-modified', '-created'),
                  'get_latest_by': 'modified',
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='Project',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('name', models.CharField(max_length=128)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ('-modified', '-created'),
                  'get_latest_by': 'modified',
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='HRCalendar',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('work_date', models.DateField()),
                  ('ev', models.FloatField(default=0)),
                  ('staff', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='djpmp.Staff')),
                  ('tasks', models.ManyToManyField(blank=True, to='djpmp.WBS')),
              ],
              options={
                  'ordering': ('-modified', '-created'),
                  'get_latest_by': 'modified',
                  'abstract': False,
              },
          ),
      ]
  