feat(database): add repositories for tickets, moderation, polls and notifications
Keep every SQL statement out of the command layer so each feature can be built and tested without a Discord dependency.
This commit is contained in:
7 files changed
+460
No files matched your search
@@ -0,0 +1,7 @@
|
||||
-- Claim and close details of a ticket (M6-T05 / M6-T06)
|
||||
ALTER TABLE tickets ADD COLUMN claimed_at TEXT;
|
||||
ALTER TABLE tickets ADD COLUMN close_reason TEXT;
|
||||
|
||||
-- Faster lookups for the poll scheduler and the result rendering (M10)
|
||||
CREATE INDEX IF NOT EXISTS idx_polls_due ON polls (status, ends_at);
|
||||
CREATE INDEX IF NOT EXISTS idx_poll_votes_choice ON poll_votes (poll_id, choice_index);
|
||||
Reference in new issue
Block a user