This commit is contained in:
2026-04-02 14:29:36 +02:00
parent a270deb2db
commit 039fa0bc80
54 changed files with 4944 additions and 170 deletions

View File

@@ -0,0 +1,19 @@
-- Quick-add items table
create table quick_add_items (
id uuid primary key default gen_random_uuid(),
user_id uuid not null references auth.users(id) on delete cascade,
name text not null,
icon text,
sort_order int not null default 0,
created_at timestamptz not null default now(),
updated_at timestamptz not null default now()
);
create index quick_add_items_user_id_idx on quick_add_items(user_id);
alter table quick_add_items enable row level security;
create policy "Users can CRUD own quick-add items"
on quick_add_items for all
using (user_id = auth.uid())
with check (user_id = auth.uid());