Interface
This interface describes persisted user data returned by mutation and database helpers.
| Property | Type | Optional | Description |
|---|---|---|---|
| _id | string | ✅ | MongoDB document ID. |
| flags | Array | ✅ | Stored user flags. |
| guild | string | ❌ | The guild ID. |
| user | string | ❌ | The user ID. |
| name | string | ✅ | Username stored for the user. |
| createdAt | string | ✅ | ISO timestamp of creation. |
| lastUpdated | string | ❌ | ISO timestamp of the last update. |
| level | number | ❌ | The user's level. |
| xp | number | ❌ | The user's XP total. |
| xp_rate | number | ✅ | Stored XP rate for the user record. |