web_set.py 906 B

1234567891011121314151617181920212223
  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. keywords = Fields(type='varchar(255)', comment='关键词')
  15. description = Fields(type='varchar(255)', comment='描述')
  16. passtel = Fields(type='varchar(255)', comment='忘记密码电话')
  17. tel = Fields(type='varchar(255)', comment='联系电话')
  18. icp = Fields(type='varchar(255)', comment='icp备案')
  19. buy = Fields(type='text', comment='首页购买')
  20. mobile = Fields(type='text', comment='首页手机')
  21. state = Fields(type='boolean', default='True', comment='数据存在状态')
  22. cdate = Fields(type='int', default='time', comment='创建时间')