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.
20 lines
595 B
20 lines
595 B
# -*- coding:utf-8 -*-
|
|
"""
|
|
@Created on : 2023/7/26 9:59
|
|
@Author: hxl
|
|
@Des: 科室模型
|
|
"""
|
|
from tortoise import models, fields
|
|
|
|
|
|
class Department(models.Model):
|
|
id = fields.UUIDField(pk=True)
|
|
name = fields.CharField(unique=True, max_length=255, description='科室名称')
|
|
code = fields.CharField(max_length=128, description='科室编号')
|
|
phone = fields.CharField(null=True, max_length=25, description="科室电话")
|
|
comment = fields.TextField(null=True, description='科室描述')
|
|
|
|
class Meta:
|
|
table = 'departments'
|
|
table_description = '科室表'
|