⚙️ Supabase Instellen

Volg de stappen hieronder om je gratis database te koppelen

1

Maak een gratis Supabase account

Ga naar supabase.com → Klik Start your project → Maak een nieuw project aan (kies een naam en wachtwoord)

2

Maak de tabellen aan

Ga in je project naar SQL Editor → plak de code hieronder → klik Run

create table categories (
  id uuid primary key,
  user_id uuid references auth.users not null,
  name text not null
);
create table products (
  id uuid primary key,
  user_id uuid references auth.users not null,
  name text not null,
  barcode text default '',
  cat_id uuid default null,
  qty integer default 0,
  min_qty integer default 0,
  buy_price numeric(10,2) default 0,
  sell_price numeric(10,2) default 0
);
create table transactions (
  id uuid primary key,
  user_id uuid references auth.users not null,
  pid uuid default null,
  p_name text not null,
  type text not null,
  qty integer not null,
  price numeric(10,2) default 0,
  note text default '',
  ts bigint not null
);
alter table categories enable row level security;
alter table products enable row level security;
alter table transactions enable row level security;
create policy "own" on categories for all using (auth.uid() = user_id) with check (auth.uid() = user_id);
create policy "own" on products for all using (auth.uid() = user_id) with check (auth.uid() = user_id);
create policy "own" on transactions for all using (auth.uid() = user_id) with check (auth.uid() = user_id);
3

Kopieer je Project URL en Anon Key

Ga naar Project Settings → API en kopieer de Project URL en anon public key hieronder


Je gegevens worden lokaal opgeslagen — nooit gedeeld

StockBeheer Pro

Log in om je voorraad te beheren

📊 Dashboard

Producten
0
unieke artikelen
Inkoopwaarde
€0
totale voorraad
Verkoopwaarde
€0
potentiële omzet
Marge
€0
potentiële winst
Lage voorraad
0
onder minimum
🕐 Recente transacties

📦 Producten

ProductCategorieVoorraad InkoopVerkoopInk. waarde Verk. waardeMargeStatus

🔄 Transacties

DatumProductType AantalPrijsTotaalOpmerking

🏷️ Categorieën

Categorie toevoegen