Introduction
Welcome to the Spinanda internal documentation hub.
What's Here
- Database Schema — Complete documentation of all database tables, relationships, triggers, and business rules
Quick Links
| Section | Description |
|---|---|
| Database Overview | ER diagram, trigger architecture, and data flow examples |
| Players | Core player/user account table |
| Transactions | Financial ledger with 16 triggers |
| VIP Levels | VIP tier definitions with cashback and perks |
| Coin Packages | Purchasable coin packages for sweepstakes |
Platform Overview
Spinanda is a sweepstakes/social casino platform consisting of:
- Backend — Node.js monorepo with 25+ microservices
- Frontend — Next.js application
- Backoffice — React Router + Cloudflare Workers admin panel
- Mobile — Flutter application
- Database — PostgreSQL with an extensive trigger system
Currency Model
For sweepstakes brands:
- GC (Gold Coins) — Purchased for entertainment, cannot be redeemed
- SC (Sweepstakes Coins) — Given free with GC purchases, can be redeemed after wagering
This dual-currency model enables legal sweepstakes operations across most US states.