* Push Notification Setup and attempt

* Office Ordering
* Allow editing of Task and Ticket Details after creation
This commit is contained in:
2026-02-24 21:06:46 +08:00
parent cc6fda0e79
commit 5979a04254
25 changed files with 1130 additions and 91 deletions
@@ -0,0 +1,11 @@
-- create a table to hold FCM device tokens for push notifications
create table if not exists public.fcm_tokens (
id uuid default uuid_generate_v4() primary key,
user_id uuid references auth.users(id) on delete cascade,
token text not null,
created_at timestamptz not null default now()
);
create unique index if not exists fcm_tokens_user_token_idx
on public.fcm_tokens(user_id, token);