score.py 474 B

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