- docs/README.md: navigation hub - docs/architecture.md: system overview, tech stack, data flows, ports - docs/backend/: supabase-core, schema, rpcs, rls, seed, docker - docs/frontend/: app-structure, screens, api-client - docs/next-steps.md: Phase 2/3/4 plan + open decisions - Fix README demo-account emails to match the actual seed
3.8 KiB
3.8 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).
What it creates
| Data | Count | Notes |
|---|---|---|
slots |
6 | 23 Oct, 09:00–15:45 (see table below) |
sessions |
18 | 3 per slot (Main Stage / Room A / Room B) |
auth.users + auth.identities |
13 | 12 attendees + 1 admin; QR token = bcrypt password |
profiles |
13 | one per user, with role + starting points |
leaderboard |
13 | mirrored from profiles |
points_log |
21 | Ana's coherent breakdown + one admin entry per other user |
| Ana's demo state | — | 6 preferences, 2 check-ins, 4 connections, 1 feedback |
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).
Slots
| id | Time |
|---|---|
| 1 | 09:00–09:45 |
| 2 | 10:00–10:45 |
| 3 | 11:30–12:15 |
| 4 | 13:15–14:00 |
| 5 | 14:00–14:45 |
| 6 | 15:00–15:45 |
Demo accounts
Login = QR code (typed or scanned) + email. The QR token is the password.
| Person | Role | QR code | Company | Start pts | |
|---|---|---|---|---|---|
| Ana Silva | attendee | CVV-ANA-4821 |
[email protected] | Nubank | 40 |
| Bruno Costa | staff | CVV-BRU-1177 |
[email protected] | Acme Corp | 140 |
| Rita Lopes | staff | CVV-RIT-9034 |
[email protected] | Globant | 95 |
| Convivo Admin | admin | CVV-ADM-0001 |
[email protected] | Convivo | 0 |
| Tomás Ribeiro | attendee | CVV-TOM-5566 |
[email protected] | Dataprev | 88 |
| Sofia Almeida | attendee | CVV-SOF-2299 |
[email protected] | Loop | 76 |
| Marco Chen | attendee | CVV-MRC-7712 |
[email protected] | DeepMind | 70 |
| Julia Santos | attendee | CVV-JUL-3345 |
[email protected] | iFood | 64 |
| Pedro Nunes | attendee | CVV-PED-8801 |
[email protected] | Microsoft | 58 |
| Carla Mendes | attendee | CVV-CAR-6623 |
[email protected] | QuintoEssencial | 52 |
| Diego Ferreira | attendee | CVV-DIE-4458 |
[email protected] | Stone | 35 |
| Marina Costa | attendee | CVV-MNA-2210 |
[email protected] | OLX | 28 |
| Lucas Oliveira | attendee | CVV-LUC-9987 |
[email protected] | USP | 15 |
Ana's demo state (so the app looks alive on first login)
Ana (id 11111111-…) is seeded with a coherent 40-point history:
- Points breakdown (
points_log): 2× check-in (+10 each), 2× connection (+5 each), 1× feedback (+10) = 40. - Preferences — one pick per slot (matches the mockup):
- Slot 1 → Designing for Trust in AI Products
- Slot 2 → AI in Practice: Lessons from Production
- Slot 3 → Data Storytelling
- Slot 4 → Prototyping with AI
- Slot 5 → Community-Led Growth
- Slot 6 → Closing Panel: What's Next
- Check-ins — checked into Slot 1 and Slot 2 (by staff Bruno).
- Connections:
- accepted with Bruno and Rita
- incoming (pending) from Sofia
- outgoing (pending) to Julia
- Feedback — rated Slot 1's Designing for Trust in AI Products 5★ with a comment.
Everyone else gets a single
adminpoints_logentry for their starting points (so the Profile breakdown shows "Other"), and no other activity.
Suggested demo flow
- Log in as Ana (attendee) → Home, Agenda, Leaderboard all populated.
- Scan Marco (
CVV-MRC-7712) → send a connection request. - Log in as Bruno (staff) → the Scan tab becomes Check-in → pick a
session → scan Carla (
CVV-CAR-6623) → she gets +10. - Watch the Leaderboard update live (Realtime).