# Generated by Django 3.2.13 on 2023-10-09 19:16 import APIs.models import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): dependencies = [ ('APIs', '0011_auto_20230803_0108'), ] operations = [ migrations.AddField( model_name='historicalinternship', name='additional_info', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(blank=True, max_length=200), blank=True, default=list, size=15), ), migrations.AddField( model_name='historicalinternship', name='allowed_batch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), default=list, size=6), ), migrations.AddField( model_name='historicalinternship', name='deadline_datetime', field=models.DateTimeField(default=APIs.models.two_day_after_today, verbose_name='Deadline Date'), ), migrations.AddField( model_name='historicalinternship', name='offer_accepted', field=models.BooleanField(default=None, null=True), ), migrations.AddField( model_name='historicalinternshipapplication', name='offer_accepted', field=models.BooleanField(blank=True, default=None, null=True), ), migrations.AddField( model_name='historicalinternshipapplication', name='stipend', field=models.IntegerField(blank=True, default=None, null=True), ), migrations.AddField( model_name='historicalstudent', name='can_apply_internship', field=models.BooleanField(default=True, verbose_name='Internship Registered'), ), migrations.AddField( model_name='internship', name='additional_info', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(blank=True, max_length=200), blank=True, default=list, size=15), ), migrations.AddField( model_name='internship', name='allowed_batch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), default=list, size=6), ), migrations.AddField( model_name='internship', name='deadline_datetime', field=models.DateTimeField(default=APIs.models.two_day_after_today, verbose_name='Deadline Date'), ), migrations.AddField( model_name='internship', name='offer_accepted', field=models.BooleanField(default=None, null=True), ), migrations.AddField( model_name='internshipapplication', name='offer_accepted', field=models.BooleanField(blank=True, default=None, null=True), ), migrations.AddField( model_name='internshipapplication', name='stipend', field=models.IntegerField(blank=True, default=None, null=True), ), migrations.AddField( model_name='student', name='can_apply_internship', field=models.BooleanField(default=True, verbose_name='Internship Registered'), ), migrations.AlterField( model_name='historicalinternship', name='allowed_branch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), default=list, size=7), ), migrations.AlterField( model_name='historicalinternship', name='facilities_provided', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['Accommodation', 'Accommodation'], ['Food', 'Food'], ['Transport', 'Transport'], ['Medical', 'Medical']], max_length=20, null=True), blank=True, default=list, size=4), ), migrations.AlterField( model_name='historicalplacement', name='allowed_batch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), default=list, size=6), ), migrations.AlterField( model_name='historicalplacement', name='allowed_branch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), default=list, size=7), ), migrations.AlterField( model_name='historicalplacement', name='tier', field=models.CharField(choices=[['psu', 'PSU'], ['1', 'Tier 1'], ['2', 'Tier 2'], ['3', 'Tier 3'], ['4', 'Tier 4'], ['5', 'Tier 5'], ['6', 'Tier 6'], ['7', 'Tier 7'], ['8', 'Open Tier']], default=None, max_length=10, null=True), ), migrations.AlterField( model_name='historicalpreplacementoffer', name='tier', field=models.CharField(choices=[['psu', 'PSU'], ['1', 'Tier 1'], ['2', 'Tier 2'], ['3', 'Tier 3'], ['4', 'Tier 4'], ['5', 'Tier 5'], ['6', 'Tier 6'], ['7', 'Tier 7'], ['8', 'Open Tier']], max_length=10), ), migrations.AlterField( model_name='historicalstudent', name='batch', field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), ), migrations.AlterField( model_name='historicalstudent', name='branch', field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), ), migrations.AlterField( model_name='historicalstudent', name='degree', field=models.CharField(choices=[['bTech', 'B.Tech'], ['ms/phd', 'MS/ PhD'], ['mTech', 'M.Tech']], default='bTech', max_length=10), ), migrations.AlterField( model_name='historicalstudent', name='roll_no', field=models.CharField(db_index=True, max_length=15), ), migrations.AlterField( model_name='internship', name='allowed_branch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), default=list, size=7), ), migrations.AlterField( model_name='internship', name='facilities_provided', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['Accommodation', 'Accommodation'], ['Food', 'Food'], ['Transport', 'Transport'], ['Medical', 'Medical']], max_length=20, null=True), blank=True, default=list, size=4), ), migrations.AlterField( model_name='placement', name='allowed_batch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), default=list, size=6), ), migrations.AlterField( model_name='placement', name='allowed_branch', field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), default=list, size=7), ), migrations.AlterField( model_name='placement', name='tier', field=models.CharField(choices=[['psu', 'PSU'], ['1', 'Tier 1'], ['2', 'Tier 2'], ['3', 'Tier 3'], ['4', 'Tier 4'], ['5', 'Tier 5'], ['6', 'Tier 6'], ['7', 'Tier 7'], ['8', 'Open Tier']], default=None, max_length=10, null=True), ), migrations.AlterField( model_name='preplacementoffer', name='tier', field=models.CharField(choices=[['psu', 'PSU'], ['1', 'Tier 1'], ['2', 'Tier 2'], ['3', 'Tier 3'], ['4', 'Tier 4'], ['5', 'Tier 5'], ['6', 'Tier 6'], ['7', 'Tier 7'], ['8', 'Open Tier']], max_length=10), ), migrations.AlterField( model_name='student', name='batch', field=models.CharField(choices=[['2022', '2022'], ['2021', '2021'], ['2020', '2020'], ['2019', '2019'], ['2018', '2018'], ['2017', '2017']], max_length=10), ), migrations.AlterField( model_name='student', name='branch', field=models.CharField(choices=[['CSE', 'CSE'], ['EE', 'EE'], ['ME', 'ME'], ['MMAE', 'MMAE'], ['EP', 'EP'], ['CIVIL', 'CIVIL'], ['CHEMICAL', 'CHEMICAL'], ['BSMS', 'BSMS']], max_length=10), ), migrations.AlterField( model_name='student', name='degree', field=models.CharField(choices=[['bTech', 'B.Tech'], ['ms/phd', 'MS/ PhD'], ['mTech', 'M.Tech']], default='bTech', max_length=10), ), migrations.AlterField( model_name='student', name='roll_no', field=models.CharField(max_length=15, unique=True), ), migrations.CreateModel( name='Issues', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(default='', max_length=50)), ('description', models.CharField(default='', max_length=200)), ('opening_id', models.CharField(default=None, max_length=15, null=True)), ('opening_type', models.CharField(choices=[('Placement', 'Placement'), ('Internship', 'Internship')], default='Placement', max_length=15)), ('created_at', models.DateTimeField(default=None, null=True)), ('updated_at', models.DateTimeField(default=None, null=True)), ('changed_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.RESTRICT, to='APIs.user')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='APIs.student')), ], options={ 'verbose_name_plural': 'Issues', }, ), migrations.CreateModel( name='HistoricalIssues', fields=[ ('id', models.IntegerField(blank=True, db_index=True)), ('title', models.CharField(default='', max_length=50)), ('description', models.CharField(default='', max_length=200)), ('opening_id', models.CharField(default=None, max_length=15, null=True)), ('opening_type', models.CharField(choices=[('Placement', 'Placement'), ('Internship', 'Internship')], default='Placement', max_length=15)), ('created_at', models.DateTimeField(default=None, null=True)), ('updated_at', models.DateTimeField(default=None, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField(db_index=True)), ('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='APIs.user')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='APIs.user')), ('student', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='APIs.student')), ], options={ 'verbose_name': 'historical issues', 'verbose_name_plural': 'historical Issues', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': ('history_date', 'history_id'), }, bases=(simple_history.models.HistoricalChanges, models.Model), ), ]