⚠ One-time database setup needed. The face system can't store sync data yet because the
staff.source_row_id column is missing.
The roster below still loads, but staff will all show as “Not synced” until you run this once in
Supabase → SQL Editor:
ALTER TABLE staff ADD COLUMN IF NOT EXISTS source_row_id text;
DROP INDEX IF EXISTS idx_staff_source_row_id;
CREATE UNIQUE INDEX IF NOT EXISTS idx_staff_source_row_id ON staff(source_row_id);
ALTER TABLE staff ADD COLUMN IF NOT EXISTS customer text;
ALTER TABLE staff ADD COLUMN IF NOT EXISTS job_description text;
ALTER TABLE staff ADD COLUMN IF NOT EXISTS date_joining date;
ALTER TABLE staff ADD COLUMN IF NOT EXISTS data_number text;
ALTER TABLE staff ADD COLUMN IF NOT EXISTS id_number text;
NOTIFY pgrst, 'reload schema';
Name
Email
Staff #
Enrolment
Action
Loading…
Staff member
⚠ The extra detail columns aren't in the database yet. Run retail-setup.sql in Supabase (SQL Editor) to enable saving these fields.