User Preferences
Class name: UserPreferences
The user preferences model is used to store the preferences of a user in the system. It allows users to customize their experience by setting various options.
Appwrite has Preferences object which is essentially a key-value store that contains all the preferences of a user
For customers, the prefs are as follows:
| Property | Type | Description |
|---|---|---|
| preferredLanguage | string | The preferred language of the user |
| preferredCurrency | string | The preferred currency of the user |
| countryOfResidence | string | The country of residence of the user |
| marketingOptIn | boolean | Whether the user wants to receive marketing emails |
| referralCode | string | The referral code of the user |
| referredBy | string | The ID of the user who referred the user |