User
Last updated
Was this helpful?
Last updated
Was this helpful?
CUser is a class that represents a user in JFW. It has properties that correspond to each column in the database and provides utility methods to manipulate the data, such as creating, modifying, retrieving, or deleting them.
We divide a user into multiple parts in the database:
User: stores essential information about the user, such as username, and password. It acts as the primary identity of the user in the system.
UserProfile: stores additional details about the user that aren't critical for authentication but are important for user personalization. This may include the user's full name, avatar, bio, and contact information.
UserRole: This defines the user's role within the system, such as administrator, editor, or moderator. This component is crucial for implementing access control and permissions, ensuring users can only perform actions appropriate to their roles.
UserSetting: stores user-specific settings and preferences, such as language choice, privacy options, and notification settings. This component allows for a more personalized user experience by accommodating individual preferences.