mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2025-05-17 03:48:08 +08:00
Added subjects model
This commit is contained in:
parent
fcbb57bd98
commit
4c8eb00197
12 changed files with 96 additions and 2 deletions
25
infotech/subjects/migrations/0001_initial.py
Normal file
25
infotech/subjects/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 4.1.7 on 2023-03-21 13:20
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Subject',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=40)),
|
||||
('enrolled_count', models.IntegerField(default=0, validators=[django.core.validators.MaxValueValidator(60), django.core.validators.MinValueValidator(0)])),
|
||||
('max_slots', models.IntegerField(default=60)),
|
||||
('year_level', models.CharField(max_length=20)),
|
||||
],
|
||||
),
|
||||
]
|
0
infotech/subjects/migrations/__init__.py
Normal file
0
infotech/subjects/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue