Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
681 B
SQL
18 lines
681 B
SQL
create table if not exists
|
|
merch_stock_status (
|
|
item_id text primary key not null,
|
|
out_of_stock boolean default false not null
|
|
);
|
|
|
|
-- Pre-seed all merch items as out of stock (flip to in-stock via admin toggle when ready)
|
|
insert into merch_stock_status (item_id, out_of_stock) values
|
|
('merch-aggc-tshirt', true),
|
|
('merch-cap-white-logo', true),
|
|
('merch-cap-purple-logo', true),
|
|
('merch-wordmark-tshirt', true)
|
|
on conflict (item_id) do nothing;
|
|
|
|
-- RLS: public read, no client-side writes (all mutations go through service role)
|
|
alter table merch_stock_status enable row level security;
|
|
create policy "public read" on merch_stock_status for select using (true);
|