5.6 KiB
Seed Data & Demo Accounts
Source of truth: supabase/seed.sql. The seed runs on
npm run db:reset and is idempotent (on conflict ... do nothing /
do update).
The seed uses real data from a past event — the Global Power Platform Bootcamp (Austria) — instead of random demo data:
- The agenda (slots + sessions) comes from the event's Sessionize public API
(
…/api/v2/4domszaq/view/All): 22 sessions on 2026-02-20 (18 talks + 4 service sessions: coffee break, lunch, a partner session, and the closing). - The speakers are not seeded — they are imported from the Sessionize
"Sessions and speakers (advanced)"
.xlsxvia the admin Interfaces → Import Excel control (see sidecar.md). That import creates the speaker contacts, links them to sessions, and creates theirspeakerregistrations (matched by email).
What it creates
| Data | Count | Notes |
|---|---|---|
auth.users + auth.identities |
54 | 50 attendees + 4 staff; QR token = bcrypt password (attendees), appe-admin-2026 (staff) |
contacts |
54 | 50 attendees + 4 staff (is_admin = true, password = 'appe-admin-2026') |
events |
1 | Global Power Platform Bootcamp | Austrian Power Platform Enthusiasts Edition, 2026-02-20, Vienna, Austria, active, sessionize_endpoint set to https://sessionize.com/api/v2/4domszaq/view/All |
registrations |
54 | 50 attendee + 4 staff; each with a CVV-XXX-NNNN QR token |
slots |
10 | 2026-02-20, 09:15–17:00 (7 session + 3 service_session) |
sessions |
22 | real titles/descriptions/rooms from the Sessionize API |
session_speakers |
0 | added by the Excel import (not seeded) |
sponsors |
0 | none for this event |
Speaker contacts are intentionally absent. After
db:reset, run the Excel import (Interfaces → Import Excel → choose the.xlsx→ Import) to add the 21 speakers: their contacts, session links, andspeakerregistrations.
GoTrue gotcha: manually-inserted
auth.usersmust haveconfirmation_token,recovery_token,email_change_token_new, andemail_changeset to''(empty string), not NULL — GoTrue's password grant can't scan a NULLconfirmation_token.phoneis left NULL (unique constraint).
Staff = admin (merged). The four staff have
is_admin = trueon theircontactsrow (so they can open the APPE Admin console and generate the Sessionize export) and their registrationtypeisstaff.
Slots (2026-02-20)
| Type | Time |
|---|---|
| session | 09:15–10:00 (keynote) |
| service_session | 10:00–10:30 (coffee break) |
| session | 10:30–11:15 |
| session | 11:15–12:00 |
| service_session | 12:00–13:00 (lunch) |
| session | 13:00–13:45 |
| session | 13:45–14:30 |
| session | 14:30–15:15 |
| session | 15:15–16:00 |
| service_session | 16:00–17:00 (partner session + closing) |
typeis theslot_typeenum (session/service_session) — see schema.md.
Demo accounts
Attendees log in with QR code (typed or scanned) + email — the QR
token is the Auth password. Staff log in with QR code + their staff
password in the Convivo app. The Admin console uses only
email magic links. All four
staff share the password appe-admin-2026 (stored in contacts.password,
auto-synced to auth.users.encrypted_password by the trg_contact_password_sync
trigger).
Existing default password: any
@appe.atcontact is an admin and retainsappe-admin-2026for Convivo staff password login. Thetrg_contacts_appe_at_admintrigger setscontacts.password = 'appe-admin-2026'(when null) on insert/update, and the auth-user-creation helpers hash it intoauth.users.encrypted_password. Admin magic-link login neither uses nor changes these passwords. A custom password set on the contact row is always respected (never overwritten). See migration20260910000000_admin_default_password.sql.
| Person | Type | Convivo Login | |
|---|---|---|---|
| Amelia Hernandez | staff (admin) | [email protected] | appe-admin-2026 |
| Sabrina Hota | staff (admin) | [email protected] | appe-admin-2026 |
| Jose Lago | staff (admin) | [email protected] | appe-admin-2026 |
| Markus Franz | staff (admin) | [email protected] | appe-admin-2026 |
| 50 attendees | attendee | (made-up, e.g. [email protected]) | QR CVV-ATT-1000…CVV-ATT-1049 |
Speaker auto-promote: the Excel import creates the speakers' registrations as
speakerdirectly (and thesession_speakers_speaker_promotetrigger promotes anyattendeethat gets linked). The seed itself contains no speakers — only the 50 attendees and 4 staff.
Suggested demo flow
- Log in as Amelia (staff/admin) in the admin app (
[email protected]/appe-admin-2026) → Dashboard shows the real event (54 registrations, 22 sessions). - Interfaces → Import Excel → choose the "Sessions and speakers
(advanced)"
.xlsx→ Import → the result modal shows the speakers created, sessions updated, speaker links, and speaker registrations created. - Schedule → slots now show Session / Service Session types and the sessions list their speakers.
- Events → the event's Sessionize endpoint is set; the Sync button runs the (keyless) API sync.
- Log in as an attendee in the Convivo app (QR
CVV-ATT-1000+[email protected]) → Home/Agenda show the real agenda.