Skip to content

Commit

Permalink
updated migrations for all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhatsuman authored and rush1kesh-010 committed May 3, 2024
1 parent 8c025aa commit 573112a
Show file tree
Hide file tree
Showing 31 changed files with 654 additions and 185 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.db import migrations, models
import django.db.models.deletion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import datetime
from django.db import migrations, models
Expand All @@ -12,8 +12,8 @@ class Migration(migrations.Migration):

dependencies = [
('globals', '0001_initial'),
('academic_information', '0001_initial'),
('programme_curriculum', '0001_initial'),
('academic_information', '0001_initial'),
]

operations = [
Expand Down Expand Up @@ -368,6 +368,16 @@ class Migration(migrations.Migration):
'db_table': 'Bonafide',
},
),
migrations.CreateModel(
name='backlog_course',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('is_summer_course', models.BooleanField(default=False)),
('course_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academic_information.course')),
('semester_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='programme_curriculum.semester')),
('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academic_information.student')),
],
),
migrations.CreateModel(
name='AssistantshipClaim',
fields=[
Expand Down Expand Up @@ -402,4 +412,4 @@ class Migration(migrations.Migration):
'unique_together': {('curr_id', 'student_id')},
},
),
]
]
17 changes: 15 additions & 2 deletions FusionIIIT/applications/central_mess/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import applications.central_mess.models
import datetime
Expand Down Expand Up @@ -63,6 +63,19 @@ class Migration(migrations.Migration):
('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academic_information.student')),
],
),
migrations.CreateModel(
name='Update_Payment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Txn_no', models.CharField(max_length=20)),
('img', models.ImageField(default=None, upload_to='images/')),
('amount', models.IntegerField(default=0)),
('status', models.CharField(default='pending', max_length=10)),
('update_remark', models.CharField(default='NA', max_length=50)),
('payment_date', models.DateField(default=None, null=True)),
('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academic_information.student')),
],
),
migrations.CreateModel(
name='Special_request',
fields=[
Expand Down Expand Up @@ -186,7 +199,7 @@ class Migration(migrations.Migration):
('amount_paid', models.IntegerField(default=0)),
('payment_month', models.CharField(default=applications.central_mess.models.current_month, max_length=20)),
('payment_year', models.IntegerField(default=applications.central_mess.models.current_year)),
('payment_date', models.DateField(default=datetime.date(2024, 4, 15))),
('payment_date', models.DateField(default=datetime.date(2024, 4, 27))),
('student_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academic_information.student')),
],
options={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.db import migrations, models
import django.db.models.deletion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import datetime
from django.db import migrations, models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import datetime
from django.db import migrations, models
Expand Down
4 changes: 2 additions & 2 deletions FusionIIIT/applications/eis/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import datetime
from django.conf import settings
Expand All @@ -11,8 +11,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('auth', '0012_alter_user_first_name_max_length'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.conf import settings
from django.db import migrations, models
Expand All @@ -10,9 +10,9 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('globals', '0001_initial'),
('auth', '0012_alter_user_first_name_max_length'),
('globals', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.conf import settings
from django.db import migrations, models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-18 13:13
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -9,7 +9,7 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('academic_information', '0001_initial'),
('programme_curriculum', '0001_initial'),
]

operations = [
Expand Down Expand Up @@ -42,7 +42,7 @@ class Migration(migrations.Migration):
('authenticator_3', models.BooleanField(default=False)),
('year', models.DateField(auto_now_add=True)),
('course_year', models.IntegerField(default=2024)),
('course_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='academic_information.course')),
('course_id', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='programme_curriculum.course')),
],
),
]
2 changes: 1 addition & 1 deletion FusionIIIT/applications/feeds/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.conf import settings
from django.db import migrations, models
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.conf import settings
from django.db import migrations, models
Expand All @@ -10,8 +10,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('globals', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.db import migrations, models

Expand Down
6 changes: 3 additions & 3 deletions FusionIIIT/applications/globals/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import applications.globals.models
import datetime
Expand Down Expand Up @@ -39,7 +39,7 @@ class Migration(migrations.Migration):
('title', models.CharField(choices=[('Mr.', 'Mr.'), ('Mrs.', 'Mrs.'), ('Ms.', 'Ms.'), ('Dr.', 'Dr.'), ('Professor', 'Prof.'), ('Shreemati', 'Shreemati'), ('Shree', 'Shree')], default='Dr.', max_length=20)),
('sex', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], default='M', max_length=2)),
('date_of_birth', models.DateField(default=datetime.date(1970, 1, 1))),
('user_status', models.CharField(choices=[('NEW', 'NEW'), ('PRESENT', 'PRESENT')], default='PRESENT', max_length=50)),
('user_status', models.CharField(choices=[('PRESENT', 'PRESENT'), ('NEW', 'NEW')], default='PRESENT', max_length=50)),
('address', models.TextField(default='', max_length=1000)),
('phone_no', models.BigIntegerField(default=9999999999, null=True)),
('user_type', models.CharField(choices=[('student', 'student'), ('staff', 'staff'), ('compounder', 'compounder'), ('faculty', 'faculty')], max_length=20)),
Expand Down Expand Up @@ -106,7 +106,7 @@ class Migration(migrations.Migration):
('working', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='current_designation', to=settings.AUTH_USER_MODEL)),
],
options={
'unique_together': {('working', 'designation'), ('user', 'designation')},
'unique_together': {('user', 'designation'), ('working', 'designation')},
},
),
]
20 changes: 16 additions & 4 deletions FusionIIIT/applications/gymkhana/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

from django.conf import settings
from django.db import migrations, models
Expand All @@ -11,9 +11,9 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('globals', '0001_initial'),
('academic_information', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand All @@ -30,6 +30,8 @@ class Migration(migrations.Migration):
('spent_budget', models.IntegerField(default=0, null=True)),
('avail_budget', models.IntegerField(default=0, null=True)),
('status', models.CharField(choices=[('open', 'Open'), ('confirmed', 'Confirmed'), ('rejected', 'Rejected')], default='open', max_length=50)),
('head_changed_on', models.DateField(default=django.utils.timezone.now, null=True)),
('created_on', models.DateField(default=django.utils.timezone.now, null=True)),
('co_coordinator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='coco_of', to='academic_information.student')),
('co_ordinator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='co_of', to='academic_information.student')),
('faculty_incharge', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='faculty_incharge_of', to='globals.faculty')),
Expand Down Expand Up @@ -68,7 +70,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Registration_form',
fields=[
('roll', models.CharField(default='2016001', max_length=7, primary_key=True, serialize=False)),
('roll', models.CharField(default='20160017', max_length=8, primary_key=True, serialize=False)),
('user_name', models.CharField(default='Student', max_length=40)),
('branch', models.CharField(default='open', max_length=20)),
('cpi', models.FloatField(default=6.0, max_length=3)),
Expand All @@ -93,6 +95,16 @@ class Migration(migrations.Migration):
'ordering': ['-pub_date'],
},
),
migrations.CreateModel(
name='Inventory',
fields=[
('club_name', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='club_inventory', serialize=False, to='gymkhana.club_info')),
('inventory', models.FileField(upload_to='gymkhana/inventory')),
],
options={
'db_table': 'Inventory',
},
),
migrations.CreateModel(
name='Voting_voters',
fields=[
Expand Down Expand Up @@ -121,7 +133,7 @@ class Migration(migrations.Migration):
('venue', models.CharField(choices=[('Classroom', (('CR101', 'CR101'), ('CR102', 'CR102'))), ('Lecturehall', (('L101', 'L101'), ('L102', 'L102')))], max_length=50)),
('date', models.DateField(default=None)),
('start_time', models.TimeField(default=None)),
('end_time', models.TimeField(default=None, null=True)),
('end_time', models.TimeField(default=None)),
('session_poster', models.ImageField(null=True, upload_to='gymkhana/session_poster')),
('details', models.TextField(max_length=256, null=True)),
('status', models.CharField(choices=[('open', 'Open'), ('confirmed', 'Confirmed'), ('rejected', 'Rejected')], default='open', max_length=50)),
Expand Down
21 changes: 15 additions & 6 deletions FusionIIIT/applications/health_center/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-04-27 23:48

import datetime
from django.db import migrations, models
Expand Down Expand Up @@ -28,7 +28,7 @@ class Migration(migrations.Migration):
name='Doctor',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('doctor_name', models.CharField(choices=[(0, 'Dr.Sharma'), (1, 'Dr.Vinay')], max_length=50)),
('doctor_name', models.CharField(max_length=50)),
('doctor_phone', models.CharField(max_length=15)),
('specialization', models.CharField(max_length=100)),
('active', models.BooleanField(default=True)),
Expand Down Expand Up @@ -57,7 +57,7 @@ class Migration(migrations.Migration):
name='Pathologist',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('pathologist_name', models.CharField(choices=[(0, 'Dr.Ajay'), (1, 'Dr.Rahul')], max_length=50)),
('pathologist_name', models.CharField(max_length=50)),
('pathologist_phone', models.CharField(max_length=15)),
('specialization', models.CharField(max_length=100)),
('active', models.BooleanField(default=True)),
Expand Down Expand Up @@ -132,6 +132,18 @@ class Migration(migrations.Migration):
('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='globals.extrainfo')),
],
),
migrations.CreateModel(
name='MedicalProfile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_of_birth', models.DateField()),
('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], max_length=1)),
('blood_type', models.CharField(choices=[('A+', 'A+'), ('A-', 'A-'), ('B+', 'B+'), ('B-', 'B-'), ('AB+', 'AB+'), ('AB-', 'AB-'), ('O+', 'O+'), ('O-', 'O-')], max_length=3)),
('height', models.DecimalField(decimal_places=2, max_digits=5)),
('weight', models.DecimalField(decimal_places=2, max_digits=5)),
('user_id', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='globals.extrainfo')),
],
),
migrations.CreateModel(
name='Hospital_admit',
fields=[
Expand Down Expand Up @@ -197,9 +209,6 @@ class Migration(migrations.Migration):
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('ann_date', models.DateTimeField(default='04-04-2021')),
('message', models.CharField(max_length=200)),
('batch', models.CharField(default='Year-1', max_length=40)),
('department', models.CharField(default='ALL', max_length=40)),
('programme', models.CharField(max_length=10)),
('upload_announcement', models.FileField(default=' ', null=True, upload_to='health_center/upload_announcement')),
('anno_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='announcements_made', to='globals.extrainfo')),
],
Expand Down
Loading

0 comments on commit 573112a

Please sign in to comment.