Data Model
Last generated 2026-07-13 · window 2026-07-12T18:02:00Z–2026-07-13T18:01:03Z
177 migrations in database/migrations/. Models in app/Models/.
Core entities #
| Model | Table | Role |
|---|
| User | users | App user; Passport tokens; links to tenants |
| Corporation | corporations | Operator corp; corp_key for integrations |
| Location | corporation_locations | Facility |
| UserTenant | user_tenants | User ↔ SiteLink tenant |
| Ledger | ledgers | Unit ledger |
| GateProviderConfig | gate_provider_configs | Per-location gate integration |
Communications #
| Model | Role |
|---|
| ExpoPushToken, AppNotification | Push notifications |
| InAppMessage (+ locations, interactions) | In-app messaging (2026 migrations) |
Recent migrations (2026) #
- In-app messages tables (
2026_06_04_*) verification_exempt on users- Gate provider device rules, davinci/rapidstor bypass fields