# -*- coding: utf-8 -*- from .__load__ import * class Extract(Model): __table__ = 'extract' __comment__ = '提取文件内容' id = Fields(type='int', primaryKey=True, autoIncrement=True, comment='ID') site_id = Fields(type='int', comment='所属站点') uid = Fields(type='varchar(200)', comment='上传者') source_id = Fields(type='int(11)', comment='源文件id') source = Fields(type='varchar(500)', comment='源文件') audio = Fields(type='varchar(500)', comment='语音文件') notify = Fields(type='varchar(2000)', comment='回调地址') name = Fields(type='varchar(200)', comment='文件名') page = Fields(type='int(11)', comment='页数') # 这里加索引 key = Fields(type='varchar(100)', index='search', comment='文件key') ext = Fields(type='varchar(20)', comment='后缀名') size = Fields(type='varchar(200)', comment='源文件大小') host = Fields(type='varchar(200)', comment='远程主机地址') file = Fields(type='varchar(200)', comment='本地地址') path = Fields(type='varchar(200)', comment='本地资源目录') state = Fields(type='boolean', default='True', comment='数据存在状态') status = Fields(type='tinyint', default='1', comment='转换状态1待机2提取中3提取完成4提取失败') cdate = Fields(type='int', default='time', comment='创建时间')