InfoTech-Backend/infotech/subjects/migrations/0001_initial.py

26 lines
845 B
Python
Raw Normal View History

2023-03-21 21:22:14 +08:00
# 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)),
],
),
]