site.py 866 B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:site.py
  5. """
  6. from .__load__ import *
  7. class Site(Model):
  8. __table__ = 'site'
  9. __comment__ = '站点主表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='站点ID')
  11. name = Fields(type='varchar(50)', comment='站点名')
  12. link = Fields(type='varchar(200)', comment='站点网址')
  13. appid = Fields(type='varchar(150)', comment='appid')
  14. appsecret = Fields(type='varchar(300)', comment='appsecret')
  15. page = Fields(type='int', comment='默认显示多少页')
  16. sdate = Fields(type='int', comment='开始时间')
  17. edate = Fields(type='int', comment='结束时间')
  18. api = Fields(type='varchar(300)', comment='通知接口')
  19. state = Fields(type='boolean', default='True', comment='数据存在状态')
  20. cdate = Fields(type='int', default='time', comment='创建时间')