Stop publishing repository-wide prompt ledgers and enforce per-user prompt isolation through authenticated Gitea IDs.
Hop-State: A_06FN8NFDRFAFN5VCJTHJAAG Hop-Proposal: R_06FN8NEGJ054CPMJF9ZAN70 Hop-Task: T_06FN8HT6XG332C3XY6PYCCG Hop-Attempt: AT_06FN8HT6XGRXW0B4WPFFBJG
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE prompts ADD COLUMN gitea_user_id bigint CHECK (gitea_user_id > 0);
|
||||
|
||||
CREATE INDEX prompts_repository_user_created_at_idx
|
||||
ON prompts (repository_id, gitea_user_id, created_at DESC)
|
||||
WHERE gitea_user_id IS NOT NULL;
|
||||
Reference in New Issue
Block a user