huge updates i donot track what updates i have made

This commit is contained in:
sankalp committed 2025-03-29 03:22:47 +05:45
1 parent d02b470ca0
commit 84dd5d0b2f
55 files changed
+11072 -1415

No files matched your search

+106 -38
View File
@@ -1,4 +1,4 @@
# Generated by Django 5.1.7 on 2025-03-25 17:13
# Generated by Django 5.1.7 on 2025-03-27 01:54
import django.contrib.auth.models
import django.db.models.deletion
@@ -95,6 +95,11 @@ class Migration(migrations.Migration):
('temporary_address', models.CharField(blank=True, max_length=255, null=True)),
('permanent_address', models.CharField(blank=True, max_length=255, null=True)),
('marital_status', models.CharField(blank=True, choices=[('Married', 'Married'), ('Unmarried', 'Unmarried'), ('Divorced', 'Divorced')], max_length=255, null=True)),
('parent_name', models.CharField(blank=True, max_length=255, null=True)),
('parent_phone', models.CharField(blank=True, max_length=255, null=True)),
('citizenship_no', models.CharField(blank=True, max_length=255, null=True)),
('passport', models.CharField(blank=True, max_length=255, null=True)),
('image', models.ImageField(blank=True, null=True, upload_to='staff_image')),
('joining_date', models.DateField(blank=True, null=True)),
('password', models.CharField(editable=False, max_length=128, null=True)),
('groups', models.ManyToManyField(blank=True, help_text='The groups this staff belongs to.', related_name='staffs', to='auth.group', verbose_name='groups')),
@@ -111,15 +116,16 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='Routine',
fields=[
('id', models.BigAutoField(primary_key=True, serialize=False)),
('name', models.CharField(blank=True, max_length=255, null=True)),
('start_time', models.TimeField(blank=True, null=True)),
('end_time', models.TimeField(blank=True, null=True)),
('teacher', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='routines', to='app.staff')),
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start_time', models.TimeField()),
('end_time', models.TimeField()),
('semester_or_year', models.PositiveIntegerField()),
('is_active', models.BooleanField(default=True)),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.course')),
('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.staff')),
],
options={
'verbose_name': 'Routine',
'verbose_name_plural': 'Routines',
'ordering': ['start_time'],
},
),
migrations.CreateModel(
@@ -168,11 +174,16 @@ class Migration(migrations.Migration):
('phone', models.CharField(blank=True, max_length=255, null=True, unique=True)),
('temporary_address', models.CharField(blank=True, max_length=500, null=True)),
('permanent_address', models.CharField(blank=True, max_length=500, null=True)),
('marital_status', models.CharField(blank=True, choices=[('Married', 'Married'), ('Unmarried', 'Unmarried'), ('Divorced', 'Divorced')], max_length=255, null=True)),
('parent_name', models.CharField(blank=True, max_length=255, null=True)),
('parent_phone', models.CharField(blank=True, max_length=255, null=True)),
('citizenship_no', models.CharField(blank=True, max_length=255, null=True)),
('image', models.ImageField(blank=True, null=True, upload_to='student_image')),
('current_semester', models.PositiveIntegerField(default=1, help_text='Current semester for semester-based courses')),
('joining_date', models.DateField(blank=True, null=True)),
('password', models.CharField(editable=False, max_length=128, null=True)),
('courses', models.ManyToManyField(blank=True, related_name='students', to='app.course')),
('batches', models.ManyToManyField(blank=True, related_name='students', to='app.batch')),
('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='students', to='app.course')),
('groups', models.ManyToManyField(blank=True, help_text='The groups this student belongs to.', related_name='students', to='auth.group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this student.', related_name='student_set', related_query_name='student', to='auth.permission', verbose_name='user permissions')),
],
@@ -210,56 +221,113 @@ class Migration(migrations.Migration):
'ordering': ['-created_at'],
},
),
migrations.CreateModel(
name='StudentRoutine',
fields=[
('id', models.BigAutoField(primary_key=True, serialize=False)),
('course', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.course')),
('routine', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='students', to='app.routine')),
('student', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='routines', to='app.student')),
],
),
migrations.CreateModel(
name='Subject',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('name', models.CharField(max_length=255)),
('semester_or_year', models.PositiveIntegerField()),
('course', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='app.course')),
('syllabus_pdf', models.FileField(blank=True, help_text='Upload syllabus or study material PDF', null=True, upload_to='subject_pdfs/')),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.course')),
],
options={
'ordering': ['course', 'semester_or_year', 'name'],
'unique_together': {('name', 'course', 'semester_or_year')},
},
),
migrations.AddField(
model_name='routine',
name='subject',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.subject'),
),
migrations.CreateModel(
name='StaffInstituteFeedback',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('feedback_type', models.CharField(choices=[('General', 'General'), ('Facilities', 'Facilities'), ('Teaching', 'Teaching'), ('Infrastructure', 'Infrastructure'), ('Administration', 'Administration')], default='General', max_length=20)),
('rating', models.DecimalField(choices=[(1.0, 1.0), (1.5, 1.5), (2.0, 2.0), (2.5, 2.5), (3.0, 3.0), (3.5, 3.5), (4.0, 4.0), (4.5, 4.5), (5.0, 5.0)], decimal_places=1, max_digits=2)),
('feedback_text', models.TextField()),
('is_anonymous', models.BooleanField(default=False)),
('is_public', models.BooleanField(default=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('institute', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='staff_feedbacks', to='app.institute')),
('staff', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='institute_feedbacks', to='app.staff')),
],
options={
'verbose_name': 'Staff Institute Feedback',
'verbose_name_plural': 'Staff Institute Feedbacks',
'ordering': ['-created_at'],
'unique_together': {('staff', 'institute', 'feedback_type')},
},
),
migrations.CreateModel(
name='InstituteFeedback',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('feedback_type', models.CharField(choices=[('General', 'General'), ('Facilities', 'Facilities'), ('Teaching', 'Teaching'), ('Infrastructure', 'Infrastructure'), ('Administration', 'Administration')], default='General', max_length=20)),
('rating', models.DecimalField(choices=[(1.0, 1.0), (1.5, 1.5), (2.0, 2.0), (2.5, 2.5), (3.0, 3.0), (3.5, 3.5), (4.0, 4.0), (4.5, 4.5), (5.0, 5.0)], decimal_places=1, max_digits=2)),
('feedback_text', models.TextField()),
('is_anonymous', models.BooleanField(default=False)),
('is_public', models.BooleanField(default=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('institute', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='app.institute')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='institute_feedbacks', to='app.student')),
],
options={
'verbose_name': 'Student Institute Feedback',
'verbose_name_plural': 'Student Institute Feedbacks',
'ordering': ['-created_at'],
'unique_together': {('user', 'institute', 'feedback_type')},
},
),
migrations.CreateModel(
name='CourseTracking',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('enrollment_date', models.DateField(auto_now_add=True)),
('start_date', models.DateField(blank=True, null=True)),
('expected_end_date', models.DateField(blank=True, null=True)),
('actual_end_date', models.DateField(blank=True, null=True)),
('progress_status', models.CharField(choices=[('Not Started', 'Not Started'), ('In Progress', 'In Progress'), ('Completed', 'Completed'), ('Dropped', 'Dropped')], default='Not Started', max_length=20)),
('completion_percentage', models.IntegerField(default=0, help_text='Percentage of course completion (0-100)')),
('current_semester', models.PositiveIntegerField(default=1)),
('semester_start_date', models.DateField(blank=True, null=True)),
('semester_end_date', models.DateField(blank=True, null=True)),
('notes', models.TextField(blank=True, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='student_trackings', to='app.course')),
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='course_trackings', to='app.student')),
],
options={
'verbose_name': 'Course Tracking',
'verbose_name_plural': 'Course Trackings',
'ordering': ['-created_at'],
'unique_together': {('student', 'course')},
},
),
migrations.CreateModel(
name='StudentFeedback',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('rating', models.IntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])),
('rating', models.DecimalField(choices=[(1.0, 1.0), (1.5, 1.5), (2.0, 2.0), (2.5, 2.5), (3.0, 3.0), (3.5, 3.5), (4.0, 4.0), (4.5, 4.5), (5.0, 5.0)], decimal_places=1, max_digits=2)),
('feedback_text', models.TextField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='app.student')),
('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.staff')),
('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.subject')),
('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='app.staff')),
],
options={
'verbose_name': 'Student Feedback',
'verbose_name_plural': 'Student Feedbacks',
'unique_together': {('student', 'subject', 'teacher')},
'ordering': ['-created_at'],
'unique_together': {('student', 'teacher')},
},
),
migrations.CreateModel(
name='TeacherFeedback',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('feedback_text', models.TextField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.subject')),
('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feedbacks', to='app.staff')),
],
options={
'verbose_name': 'Teacher Feedback',
'verbose_name_plural': 'Teacher Feedbacks',
'unique_together': {('teacher', 'subject')},
},
migrations.AlterUniqueTogether(
name='routine',
unique_together={('course', 'subject', 'teacher', 'start_time', 'end_time', 'semester_or_year')},
),
]