eee0885811
- Remove recursive directory size calculations (single Seafile API call per list) - Remove 'Used in this location' usage display - Fix move using v2 per-type endpoints instead of broken batch endpoint - Send entry type from frontend for correct move routing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
562 B
SQL
15 lines
562 B
SQL
create table public.expenses (
|
|
id uuid default gen_random_uuid() primary key,
|
|
date date default current_date not null,
|
|
description text not null,
|
|
category text not null default 'Other',
|
|
amount numeric(10,2) not null,
|
|
notes text default '',
|
|
receipt_path text,
|
|
receipt_name text,
|
|
created_by uuid references public.profiles(id) on delete set null,
|
|
created_at timestamptz default now() not null
|
|
);
|
|
alter table public.expenses enable row level security;
|
|
create policy "Team all expenses" on public.expenses for all using (get_my_role() = 'team');
|