huh new thing

This commit is contained in:
sankalp committed 2025-01-17 09:10:45 +05:45
1 parent d40476ebc3
commit 0975a125c7
125 files changed
+2195 -21409

No files matched your search

@@ -0,0 +1,64 @@
# Generated by Django 5.1.5 on 2025-01-16 17:12
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("app", "0002_rename_specialization_teacher_specialization_on_and_more"),
]
operations = [
migrations.CreateModel(
name="AcademicYear",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("start_date", models.DateField()),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now_add=True)),
],
),
migrations.CreateModel(
name="Course",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("name", models.CharField(max_length=255, unique=True)),
(
"course_type",
models.CharField(
choices=[
("semester", "Semester-based"),
("year", "Year-based"),
],
max_length=10,
),
),
(
"duration",
models.PositiveIntegerField(help_text="Duration in months"),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
],
),
migrations.CreateModel(
name="Subject",
fields=[
("id", models.AutoField(primary_key=True, serialize=False)),
("name", models.CharField(max_length=255, unique=True)),
("description", 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="subjects",
to="app.course",
),
),
],
),
]