Worked out API's
This commit is contained in:
39
university/migrations/0001_initial.py
Normal file
39
university/migrations/0001_initial.py
Normal file
@@ -0,0 +1,39 @@
|
||||
# Generated by Django 5.0.1 on 2024-06-10 02:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('classes', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Sections',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('area_name', models.CharField(max_length=200)),
|
||||
('classes', models.ManyToManyField(to='classes.classes')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Agreements',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('major', models.CharField(max_length=200)),
|
||||
('sections', models.ManyToManyField(to='university.sections')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='University',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('agreements', models.ManyToManyField(to='university.agreements')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user