mini-rbac/backend/models/role.py

15 lines
323 B
Python
Raw Normal View History

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