You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
441 B
10 lines
441 B
from django.db import models
|
|
|
|
|
|
# Create your models here.
|
|
class Course(models.Model):
|
|
cid = models.AutoField(primary_key=True, verbose_name="课程编号")
|
|
c_name = models.CharField(max_length=255, verbose_name="课程名称")
|
|
type = models.CharField(max_length=128, verbose_name="课程类型")
|
|
credit = models.IntegerField(verbose_name="课程学分")
|
|
tid = models.ForeignKey(to="teacher", to_field="tid", on_delete="") |