manage_role.py 715 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter database
  5. name:manage_role.py
  6. author:rabin
  7. """
  8. from __load__ import *
  9. class Manage_role(Model):
  10. __table__ = 'manage_role'
  11. __comment__ = '角色表'
  12. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='角色ID')
  13. name = Fields(type='varchar(50)', comment='角色名称')
  14. auth = Fields(type='varchar(600)', comment='左侧菜单权限')
  15. top = Fields(type='varchar(500)', comment='头部菜单权限')
  16. oper = Fields(type='varchar(100)', comment='操作权限增删改查搜等')
  17. state = Fields(type='boolean', default='True', comment='数据存在状态')
  18. cdate = Fields(type='int', default='time', comment='创建时间')