web_set.py 1.0 KB

12345678910111213141516171819202122232425
  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. tel = Fields(type='varchar(255)', comment='联系电话')
  18. icp = Fields(type='varchar(255)', comment='icp备案')
  19. video = Fields(type='varchar(255)', comment='视频播放地址')
  20. wx_pic = Fields(type='varchar(255)', comment='微信管理图片')
  21. wx_text = Fields(type='varchar(255)', comment='微信管理图片')
  22. wx_link = Fields(type='varchar(255)', comment='微信管理图片')
  23. state = Fields(type='boolean', default='True', comment='数据存在状态')
  24. cdate = Fields(type='int', default='time', comment='创建时间')