Doorlink Source on GitHub

Backend

supabase/migrations contains schema, guards, permissions, business rules and the checked API. supabase/tests runs them in an in-process database.

npm test --workspace supabase/tests

Features include members/team, plans, sales with approvals, balances, payments, invoice links/credit notes, enquiries, scheduled reminders, device commands, hub status and network settings. Money is integer paise, dates are India calendar dates, financial years are April-March, and GST billing is not built.

One owner is enforced in Postgres. Invoice/payment/audit history cannot be edited or deleted through the business API. Hub accounts are separate from staff accounts and may not read member or financial data.

Apply migrations only to a new project after reviewing setup. supabase/tests/stubs.sql is for PGlite tests only: never deploy it. The bundle generator is not an incremental migration runner. Verify cron jobs, permissions, backups and restore on your own project.

Automatic WhatsApp sending is optional, unofficial and can cause account bans. The default tap-to-send workflow does not require a linked-session sender. Do not treat a simulator as proof of real provider behavior.