feat: add pricing quality controls
Quality / test (push) Canceled after 0s

Add robust outlier detection, stale valuation metadata, and audited seller-scoped market-value overrides with migration and tests.
This commit is contained in:
2026-09-09 01:19:51 -04:00
parent ba88814af0
commit 75c0e89511
12 changed files with 141 additions and 3 deletions
@@ -0,0 +1,9 @@
CREATE TABLE "market_value_overrides" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"inventory_item_id" uuid NOT NULL REFERENCES "inventory_items"("id"),
"value_minor" integer NOT NULL,
"currency" text NOT NULL,
"reason" text NOT NULL,
"created_by" uuid NOT NULL REFERENCES "users"("id"),
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);