web_help.py 592 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:help.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Web_help(Model):
  9. __table__ = 'web_help'
  10. __comment__ = '帮助内容表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  12. category_id = Fields(type='int', comment='分类ID', match='not')
  13. name = Fields(type='varchar(255)', comment='内容名')
  14. content = Fields(type='text', comment='文章内容')
  15. state = Fields(type='boolean', default='True', comment='数据存在状态')
  16. cdate = Fields(type='int', default='time', comment='创建时间')