Start here
Demo data and test accounts
What the sample data contains, how to load it, and how to sign in as an admin, HR, viewer or employee to try each role.
What the sample data contains
supabase/demo/seed.sql replaces the employees, attendance, leave, documents, forms, sales prospects, custom modules and company profile with made-up data. Dates are relative to today, so screens always look current. Names and emails use example.com and are not real.
| Area | What you get |
|---|---|
| Company | Acme Industries (Demo) with an address and holidays |
| Employees | 12 people: Aarav Patel, Priya Shah, Rahul Mehta, Neha Joshi, Vivek Desai, Anjali Rao, Karan Singh, Meera Nair, Rohan Verma, Sana Khan, Dev Kapoor, Isha Bhatt |
| Details | Department, designation, manager, location, address, salary, bank, PAN and UAN, emergency contact, probation dates, employment history |
| Attendance | The last two weeks, with some late marks and absences |
| Leave | Approved, pending and rejected requests of several types |
| Payroll | Salary figures on every employee, ready for Prepare payroll |
| Sales | 13 prospects across all stages, with message history |
| Forms | A published feedback form with three responses |
| Modules | An 'Assets' module with equipment issued to employees |
Warning: seed.sql deletes existing employees, attendance, leave, documents, forms, prospects and modules before it fills the sample data. Run it only on a demo or test project, never on a project that holds real data.
Loading the sample data
- Make sure every migration in supabase/migrations has been run on the project (see docs/setup/database-run-list.md).
- Open the Supabase SQL Editor for the demo or test project.
- Paste the contents of supabase/demo/seed.sql and run it. Run it again any time to reset the sample data.
- On the public demo deployment only, also run supabase/demo/open-access.sql once so visitors can use it without signing in.
Test sign-in accounts for each role
supabase/demo/demo-users.sql adds one sign-in account per role and links each to a sample employee. Open the file and type your own email address on the first line. The accounts use plus-addressing: if your email is name@gmail.com, the accounts are name+demo-admin@gmail.com, name+demo-hr@gmail.com and so on. Codes sent to those addresses arrive in your normal inbox.
| Sign-in email (plus part) | Role | Linked employee | What to try |
|---|---|---|---|
| +demo-admin | Admin | Rohan Verma (Operations Manager) | Users, Roles, Modules, Audit log. Needs the authenticator app. |
| +demo-hr | HR | Priya Shah (HR Manager) | Employees, attendance, leave approvals, payroll. |
| +demo-viewer | Viewer | Dev Kapoor (Finance Manager) | Read-only screens: no Add or Edit buttons. |
| +demo-employee | Employee | Aarav Patel (Senior Developer) | My space: check in, apply for leave, salary slips. |
| +demo-new | Employee | Meera Nair (on probation) | Probation reminders and a new joiner's view. |
Tip: Use a private browser window per account, or sign out between them, so sessions do not mix.
Warning: These accounts are real sign-ins on the project where you run the file. Run it on a demo or test project, and delete the rows from the Users page when you finish.
Demo mode versus a normal project
- Demo mode (NEXT_PUBLIC_DEMO_MODE=true) turns sign-in off. Visitors act as an admin with sample data. Users, per-person permissions and the audit log do not work there.
- A normal project requires sign-in. Sample data on it is only data: you still sign in with an invited email and, for admins, an authenticator app.
- Never run open-access.sql on a project with real data.