record.py 702 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:record.py 统计记录表,暂时用数据库
  5. """
  6. from .__load__ import *
  7. class Record(Model):
  8. __table__ = 'record'
  9. __comment__ = '记录点表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. name = Fields(type='varchar(200)', comment='操作名')
  12. record_type_id = Fields(type='int', comment='记录类型')
  13. uid = Fields(type='int', comment='用户id')
  14. ua = Fields(type='varchar(800)', comment='用户的一些常用信息,后续再加字段')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')