feat: update medical training case and auth modules

This commit is contained in:
2026-06-03 17:34:47 +08:00
parent b4bb38b7be
commit fd0b3e1982
45 changed files with 1459 additions and 812 deletions
+3 -6
View File
@@ -129,15 +129,12 @@ class TeacherStudentRelation(BaseModel):
class Institution(BaseModel):
"""院/学校"""
TYPE_CHOICES = [
('hospital', '医院'),
('school', '学校'),
]
"""疗机构"""
id = models.BigAutoField(primary_key=True)
code = models.CharField('机构编码', max_length=100, unique=True)
name = models.CharField('名称', max_length=255)
type = models.CharField('类型', max_length=30, choices=TYPE_CHOICES)
type = models.CharField('类型', max_length=30, default='hospital', blank=True)
level = models.CharField('等级', max_length=30, blank=True)
province = models.CharField('省份', max_length=50, blank=True)
city = models.CharField('城市', max_length=50, blank=True)