mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2025-05-16 11:28:14 +08:00
Initial transition to move relationships from subject to schedules
This commit is contained in:
parent
392bf195ae
commit
134df378c3
31 changed files with 334 additions and 22 deletions
26
infotech/professors/migrations/0001_initial.py
Normal file
26
infotech/professors/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Generated by Django 4.2 on 2023-04-22 01:17
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Professor',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('first_name', models.CharField(max_length=40)),
|
||||
('last_name', models.CharField(max_length=40)),
|
||||
('age', models.IntegerField()),
|
||||
('date_joined', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
|
||||
('gender', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], max_length=20)),
|
||||
],
|
||||
),
|
||||
]
|
0
infotech/professors/migrations/__init__.py
Normal file
0
infotech/professors/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue