@nymbalhq/platform 0.2.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  registerAllRoutes
3
- } from "./chunk-74KODSYJ.js";
3
+ } from "./chunk-2GFZHF5W.js";
4
4
  import "./chunk-PZ5AY32C.js";
5
5
  export {
6
6
  registerAllRoutes
7
7
  };
8
- //# sourceMappingURL=register-IVFYBJSX.js.map
8
+ //# sourceMappingURL=register-FJA7YJV3.js.map
@@ -0,0 +1,12 @@
1
+ -- The native search index. `tsv` is written by the adapter from its own normalised terms (weight A for the name, B
2
+ -- for SKUs and variant names, C for the description) rather than by to_tsvector, whose parser splits some ASCII runs
3
+ -- (`1e5x` becomes `1e5` and `x`) where the adapter's tokeniser keeps one term.
4
+ CREATE TABLE IF NOT EXISTS "search_documents" (
5
+ "id" text PRIMARY KEY NOT NULL,
6
+ "type" text NOT NULL,
7
+ "fields" jsonb NOT NULL,
8
+ "category_ids" text[] DEFAULT '{}' NOT NULL,
9
+ "tsv" tsvector NOT NULL
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE INDEX IF NOT EXISTS "search_documents_tsv_idx" ON "search_documents" USING gin ("tsv");