manage_log.py 679 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter database
  5. name:manage_log.py
  6. author:rabin
  7. """
  8. from __load__ import *
  9. class Manage_log(Base):
  10. __table__ = 'manage_log'
  11. __comment__ = '后台日志表'
  12. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='日志ID')
  13. admin_id = Fields(type='int', comment='管理员ID')
  14. model = Fields(type='varchar(50)', comment='操作的表')
  15. method = Fields(type='varchar(50)', comment='操作的方法')
  16. data = Fields(type='text', comment='数据记录')
  17. state = Fields(type='boolean', default='True', comment='数据存在状态')
  18. cdate = Fields(type='int', default='time', comment='创建时间')