score_rule.py 680 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:score.py 积分表
  5. """
  6. from .__load__ import *
  7. class Score_rule(Model):
  8. __table__ = 'score_rule'
  9. __comment__ = '积分规则表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. score_id = Fields(type='int', comment='积分id')
  12. record_type_id = Fields(type='int', comment='记录点类型id')
  13. uid = Fields(type='varchar(200)', comment='用户id,特殊积分')
  14. rule = Fields(type='varchar(800)', comment='积分规则公式')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')