manage_admin.py 707 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:manage_admin.py
  5. author:rabin
  6. """
  7. from __load__ import *
  8. class Manage_admin(Model):
  9. __table__ = 'manage_admin'
  10. __comment__ = '超级管理员'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='管理员ID')
  12. role_id = Fields(type='int', comment='角色ID')
  13. username = Fields(type='varchar(50)', comment='管理员账号')
  14. mobile = Fields(type='bigint', comment='园区管理员手机号', unique=True)
  15. password = Fields(type='varchar(38)', comment='安全密码', md5=True)
  16. state = Fields(type='boolean', default='True', comment='数据存在状态')
  17. cdate = Fields(type='int', default='time', comment='创建时间')