Signed-off-by: Dinger <quantdinger@gmail.com>
This commit is contained in:
Dinger
2026-04-17 21:01:58 +08:00
parent 8b9cb89701
commit 32f203e737
81 changed files with 1822 additions and 205 deletions
+4
View File
@@ -395,6 +395,9 @@ CREATE TABLE IF NOT EXISTS qd_indicator_codes (
review_note text DEFAULT ''::text NULL,
reviewed_at timestamp NULL,
reviewed_by int4 NULL,
-- 对已购用户而言,本地副本通过此字段关联到市场上的原始指标,
-- 用于后续"同步代码"功能拉取发布者的最新版本
source_indicator_id int4 NULL,
CONSTRAINT qd_indicator_codes_pkey PRIMARY KEY (id),
CONSTRAINT qd_indicator_codes_user_id_fkey FOREIGN KEY (user_id) REFERENCES qd_users(id) ON DELETE CASCADE
@@ -402,6 +405,7 @@ CREATE TABLE IF NOT EXISTS qd_indicator_codes (
CREATE INDEX IF NOT EXISTS idx_indicator_codes_user_id ON qd_indicator_codes USING btree (user_id);
CREATE INDEX IF NOT EXISTS idx_indicator_review_status ON qd_indicator_codes USING btree (review_status);
CREATE INDEX IF NOT EXISTS idx_indicator_codes_source ON qd_indicator_codes USING btree (source_indicator_id);
-- =============================================================================
-- 10. Watchlist