6ed0349507
Add full-text card search (PostgreSQL tsvector + GIN index) with navbar SearchBar, client-side board filters (label/assignee/due date), board templates (3 system templates + save-as-template API), and archive toggle for both board listing and board view. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
356 B
SQL
10 lines
356 B
SQL
-- Full-text search on cards
|
|
-- Generated tsvector column + GIN index for fast searching
|
|
|
|
ALTER TABLE cards ADD COLUMN IF NOT EXISTS search_vector tsvector
|
|
GENERATED ALWAYS AS (
|
|
to_tsvector('english', coalesce(title, '') || ' ' || coalesce(description, ''))
|
|
) STORED;
|
|
|
|
CREATE INDEX IF NOT EXISTS cards_search_idx ON cards USING gin(search_vector);
|