mirror of
https://github.com/OpenByteInc/QuantDinger.git
synced 2026-09-29 17:07:04 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user