{ "bsonType": "object", "required": [], "properties": { "_id": { "description": "记录ID,系统自动生成", "bsonType": "string" }, "user_id": { "bsonType": "string", "title": "用户ID", "description": "关联 uni-id-users._id", "foreignKey": "uni-id-users._id" }, "file_name": { "bsonType": "string", "title": "文件名", "description": "上传的合同文件名", "trim": "both" }, "file_size": { "bsonType": "number", "title": "文件大小", "description": "文件大小(字节)" }, "file_id": { "bsonType": "string", "title": "扣子文件ID", "description": "上传到扣子后的 file_id" }, "file_url": { "bsonType": "string", "title": "文件预览地址", "description": "uniCloud 云存储临时链接,用于查看/下载原文件" }, "html_url": { "bsonType": "string", "title": "HTML报告地址", "description": "精美 HTML 审查报告链接" }, "pdf_url": { "bsonType": "string", "title": "PDF报告地址", "description": "PDF 审查报告下载链接" }, "contract_info": { "bsonType": "object", "title": "合同结构化信息", "description": "AI 返回的合同名称、风险等级、风险统计等" }, "chat_id": { "bsonType": "string", "title": "对话ID", "description": "扣子对话 chat_id" }, "conversation_id": { "bsonType": "string", "title": "会话ID", "description": "扣子会话 conversation_id" }, "status": { "bsonType": "string", "title": "审查状态", "description": "uploaded=待审查 reviewing=等待处理 processing=审查中 completed=已完成 failed=失败", "enum": [ { "text": "待审查", "value": "uploaded" }, { "text": "等待处理", "value": "reviewing" }, { "text": "审查中", "value": "processing" }, { "text": "已完成", "value": "completed" }, { "text": "失败", "value": "failed" } ] }, "result": { "bsonType": "string", "title": "审查结果", "description": "AI 返回的审查结果内容" }, "points_used": { "bsonType": "number", "title": "消耗积分", "description": "本次审查消耗的积分数量(token_count / 100)" }, "token_count": { "bsonType": "number", "title": "Token消耗", "description": "扣子返回的 token 总消耗" }, "_add_time": { "bsonType": "date", "title": "创建时间", "description": "记录创建时间" }, "update_time": { "bsonType": "date", "title": "更新时间", "description": "最后更新时间" } } }