InfoTech-Backend/infotech/subjects/migrations/0001_initial.py
2023-03-21 21:22:14 +08:00

25 lines
845 B
Python

# 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)),
],
),
]