convert.py 1.4 KB

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. """
  3. demeter database
  4. name:convert.py
  5. """
  6. from .__load__ import *
  7. class Convert(Model):
  8. __table__ = 'convert'
  9. __comment__ = '转换表'
  10. id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID')
  11. site_id = Fields(type='int', comment='所属站点')
  12. name = Fields(type='varchar(200)', comment='文件名')
  13. uid = Fields(type='varchar(200)', comment='上传者')
  14. file_id = Fields(type='varchar(100)', comment='源文件id')
  15. file_type = Fields(type='int', default='1', comment='源文件是否收费1收费2不收费')
  16. file_size = Fields(type='varchar(200)', comment='源文件大小')
  17. file = Fields(type='varchar(500)', comment='源文件路径')
  18. key = Fields(type='varchar(100)', comment='文件key')
  19. ext = Fields(type='varchar(20)', comment='后缀名')
  20. local = Fields(type='varchar(200)', comment='本地地址')
  21. pdf = Fields(type='varchar(200)', comment='本地pdf地址')
  22. path = Fields(type='varchar(200)', comment='本地html目录')
  23. html = Fields(type='varchar(200)', comment='本地html首页地址')
  24. url = Fields(type='varchar(200)', comment='生成的html的url')
  25. page = Fields(type='int', comment='页数')
  26. state = Fields(type='boolean', default='True', comment='数据存在状态')
  27. status = Fields(type='int', default='1', comment='转换状态1待机2转换中3转换完成4转换失败')
  28. cdate = Fields(type='int', default='time', comment='创建时间')