From 86af99ee0dde68138811d9521cdd2c66ecce9bb5 Mon Sep 17 00:00:00 2001 From: jisyoona <664501563@qq.com> Date: Wed, 6 Sep 2023 10:26:25 +0800 Subject: [PATCH] update teacher code --- EduSystemServer/teacher/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/EduSystemServer/teacher/models.py b/EduSystemServer/teacher/models.py index 1e98399..c31a43e 100644 --- a/EduSystemServer/teacher/models.py +++ b/EduSystemServer/teacher/models.py @@ -4,4 +4,13 @@ from django.db import models # Create your models here. class Teacher(models.Model): tid = models.AutoField(primary_key=True, verbose_name="教师编号") + t_name = models.CharField(max_length=255, verbose_name="教师名称", name="t_name") + sex = models.CharField(max_length=128, verbose_name="教师性别", name="t_sex") + title = models.CharField(max_length=128, verbose_name="教师职称", name="t_title") + education = models.CharField(max_length=128, verbose_name="教师学历", name="t_education") + dept = models.CharField(max_length=128, verbose_name="教师所属院系", name="t_dept") + class Meta: + db_table = "teacher" + verbose_name = "教师" + verbose_name_plural = verbose_name