device_printer_log.py 908 B

1234567891011121314151617181920
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:device_printer_log.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Device_printer_log(Model):
  9. __table__ = 'device_printer_log'
  10. __comment__ = '设备打印机日志管理'
  11. id = Fields(type='uuid', primaryKey=True, comment='日志ID', uuid='farm_id')
  12. farm_id = Fields(type='int', default='setting.farm', comment='园区ID', match='not')
  13. uid = Fields(type='uuid', comment='用户ID')
  14. printer_id = Fields(type='uuid', comment='打印机id')
  15. table_name = Fields(type='varchar(150)', comment='表名')
  16. table_id = Fields(type='uuid', comment='表id')
  17. content = Fields(type='varchar(500)', comment='日志内容')
  18. num = Fields(type='int', comment='打印张数')
  19. state = Fields(type='boolean', default='True', comment='数据存在状态')
  20. cdate = Fields(type='int', default='time', comment='创建时间', manage='list')