feat(ops): ECR-007 行为分析与 ECR-008 内容运营后台
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

落地埋点 ingest/数据看板、首页宫格 CMS 与测评上下架;含账号引导、问答流式与免责声明去重,以及 review P1 审计同事务修复。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-07 02:26:16 +08:00
co-authored by Cursor
parent 7e9023f0a8
commit 7ab9add5dd
132 changed files with 8276 additions and 491 deletions
+40
View File
@@ -202,6 +202,43 @@
| meta | jsonb | |
| created_at | timestamptz | 只追加 |
### analytics_sessionsOps-B · ECR-007
| column | type | notes |
|---|---|---|
| session_id | text PK | 客户端 session_id |
| device_key | text | |
| user_id | uuid FK null | |
| started_at | timestamptz | |
| ended_at | timestamptz null | |
| exit_page | text null | |
| duration_ms | int null | |
### analytics_events
| column | type | notes |
|---|---|---|
| id | uuid PK | |
| session_id | text FK→analytics_sessions | |
| user_id | uuid FK null | |
| name | text | page_view / page_leave / … |
| page_path | text null | |
| props | jsonb | 白名单键;无 PII |
| client_ts | timestamptz | |
| received_at | timestamptz | 只追加 |
### home_toolsOps-C · ECR-008
| column | type | notes |
|---|---|---|
| id | uuid PK | |
| row_index | smallint | 1 \| 2 |
| sort_order | int | |
| path | text | 站内相对路径 |
| icon | text | HomeToolIcon 白名单 |
| label | text | ≤16 字 |
| badge | text null | |
| badge_tone | text null | hot \| new |
| enabled | bool | |
| updated_at | timestamptz | |
---
## Relationship sketch
@@ -217,4 +254,7 @@ profiles ── relation_insights ── profiles
users 1──* ask_threads 1──* ask_messages
admin_accounts 1──* admin_sessions
admin_accounts 1──* admin_audit_logs
users 1──* analytics_sessions 1──* analytics_events
home_tools(运营配置宫格)
scales.status published|draft
```