Monitron SaaS uses 14 migration files creating 20+ tables. Here's the complete schema reference.
📊 Core Tables
users
| Column | Type | Description |
|---|
| id | bigint PK | |
| name | string | Display name |
| email | string (unique) | Login email |
| password | string | Hashed password |
| avatar_url | string (nullable) | Profile picture URL |
| timezone | string | User's timezone |
| locale | string | Language preference |
| two_factor_secret | text (nullable) | 2FA secret |
| is_admin | boolean | Super admin flag |
| current_team_id | FK → teams | Active team |
teams
| Column | Type | Description |
|---|
| id | bigint PK | |
| name | string | Team name |
| slug | string (unique) | URL-friendly identifier |
| owner_id | FK → users | Team owner |
| settings | json (nullable) | Team-specific settings |
team_user (pivot)
| Column | Type |
|---|
| team_id | FK → teams |
| user_id | FK → users |
| role | string (owner/admin/member) |
📡 Monitoring Tables