manage_log.py 641 B

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