web_set.py 966 B

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