1. Зайди на supabase.com → New project
2. Settings → API → скопируй Project URL и anon key
3. SQL Editor → выполни SQL ниже → нажми Connect
SQL для создания таблицы:
create table inventory_items (
id text primary key,
location text not null,
code text not null,
name text,
unit text,
qty numeric,
weight_g numeric,
remain_ml numeric,
bottle_count integer,
updated_at timestamptz default now()
);
alter table inventory_items enable row level security;
create policy "all" on inventory_items for all using (true) with check (true);
create table inventory_products (
location text primary key,
products jsonb,
updated_at timestamptz default now()
);
alter table inventory_products enable row level security;
create policy "all" on inventory_products for all using (true) with check (true);