make manual positions can add same stock and symbal to difference group (使资金监控可以添加相同股票到不同分组)

This commit is contained in:
guopengfa
2026-01-17 19:35:19 +08:00
parent b49e642066
commit eae534af2e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ CREATE TABLE IF NOT EXISTS qd_manual_positions (
group_name VARCHAR(100) DEFAULT '',
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(user_id, market, symbol, side)
UNIQUE(user_id, market, symbol, side, group_name)
);
CREATE INDEX IF NOT EXISTS idx_manual_positions_user_id ON qd_manual_positions(user_id);