fix(docs): reactions.id → INTEGER AUTOINCREMENT, projections 补 params/created_at 列

Based on 小橘 review on #211
This commit is contained in:
小墨 2026-04-12 12:51:23 +00:00
parent e9a512919b
commit 371a07fed0

View File

@ -175,8 +175,10 @@ event_refs (
projections ( projections (
def_hash TEXT, def_hash TEXT,
params_hash TEXT, params_hash TEXT,
value TEXT, -- JSON params TEXT, -- JSON: 原始参数
updated_at INTEGER, value TEXT, -- JSON: 计算结果
created_at INTEGER, -- 首次计算时间
updated_at INTEGER, -- 最近更新时间
PRIMARY KEY (def_hash, params_hash) PRIMARY KEY (def_hash, params_hash)
) )
``` ```
@ -206,10 +208,11 @@ projections (
**数据表:** **数据表:**
```sql ```sql
reactions ( reactions (
id TEXT PRIMARY KEY, id INTEGER PRIMARY KEY AUTOINCREMENT,
projection_def_hash TEXT, projection_def_hash TEXT,
params_hash TEXT, params_hash TEXT,
action TEXT, -- 'webhook' | 'emit_event' params TEXT, -- JSON: 原始参数
action TEXT, -- 'webhook' | 'emit_event'
webhook_url TEXT, webhook_url TEXT,
emit_event_type TEXT, emit_event_type TEXT,
emit_payload_template TEXT, -- JSONata emit_payload_template TEXT, -- JSONata