Schema 结构定义

DEVELOPER
Schema
数据模型定义
Behavior ID、Action ID、Verification、Trust 的数据结构

数据模型概览
理解 Fly 的核心数据模型是正确集成 API 的基础。四大核心模型:Behavior(行为)、Action(归因)、Verification(验证)、Trust(信任)。

数据关系
Behavior 1:1 Action(一个行为产生一个归因)| Action 1:N Verification(一个归因多次验证)| Action 1:1 Trust(一个归因一个信任评级)| 哈希链串联所有事件,不可篡改。

核心模型
核心模型
Behavior → Action → Verification → Trust 四层数据模型,层层递进
Behavior 模型
behavior_id, source, platform, agent_id, content_hash, timestamp, context — 记录推荐行为
Action 模型
action_id, behavior_id, status, lifecycle[], source, referrer, hash — 归因链路
Verification 模型
gate_results[], chain_hash, is_valid, verified_at — 四重验证结果
Trust 模型
trust_score, level, factors{}, updated_at — 信任评级

数据模型理解完成,查看 OpenAPI 规范
OpenAPI →