web_set.py 885 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:web_set.py
  5. author:rabin
  6. """
  7. from .__load__ import *
  8. class Web_set(Model):
  9. __table__ = 'web_set'
  10. __comment__ = '网站设置表'
  11. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='内容ID')
  12. name = Fields(type='varchar(255)', comment='标题')
  13. keywords = Fields(type='varchar(255)', comment='关键词')
  14. description = Fields(type='varchar(255)', comment='描述')
  15. passtel = Fields(type='varchar(255)', comment='忘记密码电话')
  16. tel = Fields(type='varchar(255)', comment='联系电话')
  17. icp = Fields(type='varchar(255)', comment='icp备案')
  18. buy = Fields(type='text', comment='首页购买')
  19. mobile = Fields(type='text', comment='首页手机')
  20. state = Fields(type='boolean', default='True', comment='数据存在状态')
  21. cdate = Fields(type='int', default='time', comment='创建时间')