tasq/supabase/migrations/20260223130000_add_fcm_tokens.sql
Marc Rejohn Castillano 5979a04254 * Push Notification Setup and attempt
* Office Ordering
* Allow editing of Task and Ticket Details after creation
2026-02-24 21:06:46 +08:00

12 lines
400 B
SQL

-- 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);