mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Add course model
This commit is contained in:
parent
f0d052bc66
commit
a12e66caed
12 changed files with 72 additions and 1 deletions
22
stude/courses/migrations/0001_initial.py
Normal file
22
stude/courses/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-27 05:57
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Course',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('course_name', models.CharField(max_length=64)),
|
||||
('course_shortname', models.CharField(max_length=16)),
|
||||
],
|
||||
),
|
||||
]
|
0
stude/courses/migrations/__init__.py
Normal file
0
stude/courses/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue