mini-rbac/backend/models/role.py

15 lines
326 B
Python
Raw Normal View History

2022-09-12 07:22:08 +00:00
from models.common import Table, fields
2022-09-11 10:34:18 +00:00
class RoleModel(Table):
"""
角色表
"""
name = fields.CharField(max_length=20, description="角色名称")
remark = fields.CharField(max_length=200, description="角色描述")
class Meta:
table = "sys_role"
table_description = "角色表"