-- Enable trigram extension for fast ILIKE/contains searches
CREATE EXTENSION IF NOT EXISTS pg_trgm;

-- GIN trigram indexes for title/description search
CREATE INDEX IF NOT EXISTS "Deal_title_trgm_idx"
  ON "Deal" USING GIN ("title" gin_trgm_ops);

CREATE INDEX IF NOT EXISTS "Deal_description_trgm_idx"
  ON "Deal" USING GIN ("description" gin_trgm_ops);
