text: # Generated by Django 2.2 on 2020-05-08 15:08
  
  from django.conf import settings
  import django.core.validators
  from django.db import migrations, models
  import django.db.models.deletion
  import grievance.models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('auth', '0011_update_proxy_permissions'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Deadline',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('attempt', models.IntegerField()),
                  ('date', models.DateTimeField()),
              ],
          ),
          migrations.CreateModel(
              name='UserProfile',
              fields=[
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
                  ('token', models.IntegerField(default=0)),
                  ('name', models.CharField(max_length=100)),
                  ('contact', models.CharField(max_length=20)),
                  ('email', models.EmailField(max_length=254)),
                  ('campus', models.IntegerField(default=0)),
                  ('cg', models.CharField(max_length=10)),
              ],
          ),
          migrations.CreateModel(
              name='GrievanceForm',
              fields=[
                  ('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='grievance.UserProfile')),
                  ('campus', models.IntegerField(default=0)),
                  ('allocatedStation', models.CharField(max_length=500)),
                  ('natureOfQuery', models.IntegerField()),
                  ('applicationDate', models.DateTimeField()),
                  ('preferedStation1', models.CharField(max_length=500)),
                  ('preferedStation2', models.CharField(blank=True, max_length=500)),
                  ('preferedStation3', models.CharField(blank=True, max_length=500)),
                  ('preferedStation4', models.CharField(blank=True, max_length=500)),
                  ('preferedStation5', models.CharField(blank=True, max_length=500)),
                  ('preferedStation6', models.CharField(blank=True, max_length=500)),
                  ('preferedStation7', models.CharField(blank=True, max_length=500)),
                  ('preferedStation8', models.CharField(blank=True, max_length=500)),
                  ('preferedStation9', models.CharField(blank=True, max_length=500)),
                  ('preferedStation10', models.CharField(blank=True, max_length=500)),
                  ('document1', models.FileField(blank=True, upload_to=grievance.models.path_and_rename, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf']), grievance.models.validate_document])),
                  ('document2', models.FileField(blank=True, upload_to=grievance.models.path_and_rename, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf']), grievance.models.validate_document])),
                  ('document3', models.FileField(blank=True, upload_to=grievance.models.path_and_rename, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf']), grievance.models.validate_document])),
                  ('document4', models.FileField(blank=True, upload_to=grievance.models.path_and_rename, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf']), grievance.models.validate_document])),
                  ('document5', models.FileField(blank=True, upload_to=grievance.models.path_and_rename, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf']), grievance.models.validate_document])),
                  ('priority', models.IntegerField(default=0)),
                  ('preferenceNumberOfAllocatedStation', models.IntegerField()),
              ],
          ),
          migrations.CreateModel(
              name='InformativeQueryForm',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('attempt', models.IntegerField()),
                  ('status', models.IntegerField(default=0)),
                  ('description', models.CharField(max_length=5000)),
                  ('level1Comment', models.CharField(blank=True, max_length=5000)),
                  ('campus', models.IntegerField(default=0)),
                  ('lastChangedDate', models.DateTimeField(auto_now_add=True)),
                  ('allocatedStation', models.CharField(blank=True, max_length=500)),
                  ('preferenceNumberOfAllocatedStation', models.IntegerField(default=1)),
                  ('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='grievance.UserProfile')),
              ],
              options={
                  'unique_together': {('student_id', 'attempt')},
              },
          ),
          migrations.CreateModel(
              name='ApplicationStatus',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('campus', models.IntegerField(default=0)),
                  ('attempt', models.IntegerField()),
                  ('level', models.IntegerField()),
                  ('status', models.IntegerField(default=0)),
                  ('lastChangedDate', models.DateTimeField(auto_now_add=True)),
                  ('description', models.CharField(max_length=5000)),
                  ('level1Comment', models.CharField(blank=True, max_length=5000)),
                  ('level2Comment', models.CharField(blank=True, max_length=5000)),
                  ('newStation', models.CharField(blank=True, max_length=5000)),
                  ('natureOfQuery', models.IntegerField(default=0)),
                  ('publish', models.IntegerField(default=0)),
                  ('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='grievance.UserProfile')),
              ],
              options={
                  'unique_together': {('student_id', 'attempt')},
              },
          ),
      ]
  