feat: batch update - gift card breakdown spec, backend APIs, miniprogram pages, ETL finance recharge, docs & migrations

This commit is contained in:
Neo
2026-03-20 01:43:48 +08:00
parent 075caf067f
commit 79f9a0e1da
437 changed files with 118603 additions and 976 deletions

View File

@@ -0,0 +1,24 @@
-- =============================================================================
-- 迁移biz.notes 新增 score 列(备注星星评分)
-- 日期2026-03-18
-- 关联 SPECrns1-task-performance-apiRNS1.1 任务与绩效接口)
-- =============================================================================
-- 新增列
ALTER TABLE biz.notes
ADD COLUMN score SMALLINT CHECK (score IS NULL OR (score >= 1 AND score <= 5));
COMMENT ON COLUMN biz.notes.score IS '备注星星评分1-5由助教在创建备注时可选填写不参与 AI 分析,仅存储展示';
-- =============================================================================
-- 回滚
-- =============================================================================
-- ALTER TABLE biz.notes DROP COLUMN IF EXISTS score;
-- =============================================================================
-- 验证
-- =============================================================================
-- SELECT column_name, data_type, is_nullable
-- FROM information_schema.columns
-- WHERE table_schema = 'biz' AND table_name = 'notes' AND column_name = 'score';
-- 预期1 行smallint, YES

View File

@@ -0,0 +1,14 @@
-- 迁移:业务库导入 BOARD 看板所需的 3 个 FDW 外部表
-- 日期2026-03-19
-- 前置ETL 库已执行 2026-03-19_add_board_rls_views.sql
-- 回滚DROP FOREIGN TABLE IF EXISTS fdw_etl.v_dws_assistant_project_tag, fdw_etl.v_dws_member_project_tag, fdw_etl.v_dws_member_spending_power_index;
-- 从 ETL 库 app schema 导入 3 个新视图为外部表
IMPORT FOREIGN SCHEMA app
LIMIT TO (
v_dws_assistant_project_tag,
v_dws_member_project_tag,
v_dws_member_spending_power_index
)
FROM SERVER etl_feiqiu_server
INTO fdw_etl;