level.py 593 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:level.py 等级表
  5. """
  6. from .__load__ import *
  7. class Level(Model):
  8. __table__ = 'level'
  9. __comment__ = '等级设置表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. name = Fields(type='varchar(200)', comment='等级名称')
  12. score_id = Fields(type='int', comment='积分id')
  13. rule = Fields(type='varchar(800)', comment='等级规则公式')
  14. state = Fields(type='boolean', default='True', comment='数据存在状态')
  15. cdate = Fields(type='int', default='time', comment='创建时间')