text: # Generated by Django 2.0.5 on 2018-08-04 15:59
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('restapi', '0007_auto_20180803_1253'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='EmployeeRolesFunctionalityMapping',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('caption', models.CharField(blank=True, max_length=15, null=True)),
                  ('created_on', models.DateTimeField(auto_now_add=True)),
                  ('updated_on', models.DateTimeField(auto_now=True)),
                  ('deleted', models.BooleanField(default=False)),
                  ('deleted_on', models.DateTimeField(blank=True, null=True)),
                  ('changed_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('created_by', models.ForeignKey(limit_choices_to={'is_staff': True}, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='employeerolesfunctionality_created_by', to=settings.AUTH_USER_MODEL)),
                  ('employee_role', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='restapi.EmployeeRoles')),
              ],
          ),
          migrations.CreateModel(
              name='HistoricalEmployeeRolesFunctionalityMapping',
              fields=[
                  ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
                  ('caption', models.CharField(blank=True, max_length=15, null=True)),
                  ('created_on', models.DateTimeField(blank=True, editable=False)),
                  ('updated_on', models.DateTimeField(blank=True, editable=False)),
                  ('deleted', models.BooleanField(default=False)),
                  ('deleted_on', models.DateTimeField(blank=True, null=True)),
                  ('history_id', models.AutoField(primary_key=True, serialize=False)),
                  ('history_date', models.DateTimeField()),
                  ('history_change_reason', models.CharField(max_length=100, null=True)),
                  ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
                  ('changed_by', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
                  ('created_by', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
                  ('employee_role', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='restapi.EmployeeRoles')),
                  ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'historical employee roles functionality mapping',
                  'ordering': ('-history_date', '-history_id'),
                  'get_latest_by': 'history_date',
              },
          ),
          migrations.CreateModel(
              name='HistoricalTaskDashboardFunctionalities',
              fields=[
                  ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
                  ('functionality', models.CharField(choices=[('pending_payments', 'Pending Payments'), ('pending_lr', 'Pending LR'), ('in_transit', 'In Transit'), ('invoice_confirmation', 'Invoice Confirmation'), ('customer_inquiries', 'Customer Inquiries'), ('new_inquiry', 'Submit New Inquiry'), ('my_inquiries', 'My Inquiries'), ('delivered', 'Delivered')], db_index=True, default='new_inquiry', max_length=35, null=True)),
                  ('created_on', models.DateTimeField(blank=True, editable=False)),
                  ('updated_on', models.DateTimeField(blank=True, editable=False)),
                  ('deleted', models.BooleanField(default=False)),
                  ('deleted_on', models.DateTimeField(blank=True, null=True)),
                  ('history_id', models.AutoField(primary_key=True, serialize=False)),
                  ('history_date', models.DateTimeField()),
                  ('history_change_reason', models.CharField(max_length=100, null=True)),
                  ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
                  ('changed_by', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
                  ('created_by', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
                  ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'historical task dashboard functionalities',
                  'ordering': ('-history_date', '-history_id'),
                  'get_latest_by': 'history_date',
              },
          ),
          migrations.CreateModel(
              name='TaskDashboardFunctionalities',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('functionality', models.CharField(choices=[('pending_payments', 'Pending Payments'), ('pending_lr', 'Pending LR'), ('in_transit', 'In Transit'), ('invoice_confirmation', 'Invoice Confirmation'), ('customer_inquiries', 'Customer Inquiries'), ('new_inquiry', 'Submit New Inquiry'), ('my_inquiries', 'My Inquiries'), ('delivered', 'Delivered')], default='new_inquiry', max_length=35, null=True, unique=True)),
                  ('created_on', models.DateTimeField(auto_now_add=True)),
                  ('updated_on', models.DateTimeField(auto_now=True)),
                  ('deleted', models.BooleanField(default=False)),
                  ('deleted_on', models.DateTimeField(blank=True, null=True)),
                  ('changed_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('created_by', models.ForeignKey(limit_choices_to={'is_staff': True}, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='td_functionality_created_by', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.AddField(
              model_name='historicalemployeerolesfunctionalitymapping',
              name='td_functionality',
              field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='restapi.TaskDashboardFunctionalities'),
          ),
          migrations.AddField(
              model_name='employeerolesfunctionalitymapping',
              name='td_functionality',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='restapi.TaskDashboardFunctionalities'),
          ),
      ]
  