Add tenant-scoped gift menu settings, catalog-backed triggers, infinite OBS rendering, and guard assets. Normalize legacy and protobuf gift values for blind-box, battery-tier, and transaction-aware matching.
7 lines
299 B
SQL
7 lines
299 B
SQL
-- Every account owns exactly one built-in gift-menu component. Its ordered
|
|
-- entries remain in validated component settings and inherit component RLS.
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS component_instances_single_gift_menu
|
|
ON component_instances(owner_user_id, kind)
|
|
WHERE kind = 'gift_menu';
|