Model Descriptions
Activity
Logs user activities and system events for tracking.
AffiliatedItem
Manages affiliate marketing relationships between customers and products (courses, bundles, etc.), tracking referral links and usage.
AffiliatedPayment
Handles affiliate commission payments to customers, including payment tracking and receipt management.
AfterProduct
Manages course recommendations by defining which courses should be suggested to users after completing the current course.
Article
Manages blog posts with rich content and categorization.
AwarenessLevel
Categorizes courses based on different levels of awareness or difficulty.
BankAccount
Stores banking information for payment processing, including bank details, account numbers, and international banking codes (IBAN, SWIFT) with country associations.
Banner
Manages promotional banner images for the platform's interface, supporting single-file image uploads with metadata like alt text and background image flags.
BeforeProduct
Manages course recommendations by defining which courses should be suggested to users before taking the current course.
BodyType
Categorizes courses based on body type categories.
Bundle
Manages product packages that combine multiple courses and/or ebooks.
Bundleable (Pivot)
Pivot model that manages the relationships between bundles and their contained items (courses, ebooks)
Cart
Manages temporary storage of items before purchase completion.
Category
Manages hierarchical organization of courses, articles, and other content with nested structure support.
CategoryArticle (Pivot)
Pivot model that manages the many-to-many relationships between categories and articles, enabling content categorization.
CategoryBundle (Pivot)
Pivot model that manages the many-to-many relationships between categories and bundles, enabling bundle organization.
CategoryCourse (Pivot)
Pivot model that manages the many-to-many relationships between categories and courses, enabling course classification.
CloudPdf
Manages PDF documents associated with courses, handling CloudPDF storage URLs and file uploads with media library integration and fallback image support.
Comment
Stores user feedback and discussions on courses and content.
Country
Stores country information and manages country-based relationships for customers and regional discounts.
Course
Core learning content model that manages educational courses with features including pricing tiers depending on having certificate, or summary, also supports special IDs for authorized users, and learning path suggestions through before/after product relationships.
Customer
Manages user accounts and their associated profile information.
CustomerDesire
Manages course requests for customers with approved group application requests (GAR), tracking desired courses and their subscription status.
CustomerDiscount (Pivot)
Pivot model that manages the many-to-many relationships between customers and their assigned discounts.
CustomerLevel
Manages customer loyalty tiers (Bronze, Silver, Gold, Diamond) with associated points, rewards, and subscription benefits, including custom icons for each level.
Device
Manages user device information for push notifications, storing FCM tokens and device identifiers.
Discount
Manages promotional discounts with complex targeting options including customer types (students, social security beneficiaries), loyalty levels, countries, and usage limits.
Discountable (Pivot)
Pivot model that manages the polymorphic relationships between discounts and discountable items (courses, bundles, ebooks).
DiscountPointsTracks
Tracks the deduction of customer loyalty points, managing the timing of notifications and point reduction events.
Ebook (DEPRECATED)
Handles digital book content with associated metadata and download tracking.
FAQ
Manages frequently asked questions with support for categorization, tagging, and section types (registration, subscriptions, payments, etc.).
FAQCategory
Manages hierarchical organization of FAQ entries with priority ordering and visibility control.
Favorite
Stores user bookmarks and favorite content references.
Gift
Manages course gifting functionality, handling gift purchases, recipient information (known or unknown), gift messages, and redemption status tracking with support for polymorphic relationships to different giftable items.
GroupsApplicationRequest
Handles special group membership applications (like students, social security beneficiaries) with document verification and approval workflow.
LoginHistory
Tracks user login attempts and session information.
MaterialType
Categorizes courses based on different material types.
MonthNote
Manages monthly intention notes with PDF attachments, supporting main display status, and custom date formatting for organizational purposes.
MonthWallpaper
Manages monthly intention wallpapers with image uploads, main display status control, and custom date formatting for organizational purposes.
Note
Stores user-created video notes.
Notification
Manages system notifications and user alerts.
NotificationTemplate
Manages custom notification delivery to different target audiences (active users, subscribers, specific course enrollees), with support for customizable content, icons, and dynamic recipient counting based on various criteria.
Order
Manages purchase transactions with comprehensive payment handling (bank transfers, credit cards, installments), supporting multiple payment statuses, tax calculations, and polymorphic relationships to various purchasable items (courses, bundles, ebooks, videos) with detailed pricing information.
OrderItem (Pivot)
Pivot model that manages the polymorphic relationships between orders and purchased items, tracking detailed pricing information including discounts, and affiliate marketing data.
OrderNote
Manages administrative notes and comments on orders through polymorphic relationships, tracking user associations and additional metadata for order-related documentation.
Package
Manages wallet credit packages with configurable pricing, credit amounts, and in-app purchase integration.
Page
Manages static content pages like About Us, Terms of Service, etc.
Point
Manages customer loyalty point rules and rewards for different actions (course subscriptions, new orders), including point amounts, icons, and activity status with customizable messages.
PointsRecord
Tracks individual customer loyalty point transactions with polymorphic relationships to point-earning activities, maintaining running point totals and transaction messages.
ProductAvailability
Manages product (course/bundle) availability notifications for users, tracking contact information, expiration status, and reminder preferences with polymorphic relationships to different product types.
ProductRequest
Manages customer requests for products (courses/bundles) with polymorphic relationships, tracking request status and questionnaire responses.
ProductRequestAnswer
Manages answers for product request questionnaires, supporting correct answer validation and active status tracking.
ProductRequestQuestion
Manages questionnaire structure for product requests with configurable question types (multiple choice, text, etc.), correct answer validation, priority ordering, and answer relationships.
Promotion
Manages marketing promotions with platform-specific tracking using promotional codes, supports cost tracking, and duration settings, supporting relationships to courses and bundles with automatic promotional URL generation.
PromotionStatistic
Tracks daily performance metrics for promotional campaigns, including visits, cart additions, sales conversions, and order completion rates with additional metadata storage capabilities.
Proxy
Stores configuration settings for third-party proxy service integrations, managing connection details including protocols and endpoints with activation status control.
Publication
Manages published content (books, cards, and albums).
Rate
Manages user ratings and reviews for various content types (courses, publications, bundles), supporting verification status, comments/replies, and polymorphic relationships to both rated items and review authors.
Related
Manages relationships between related products (courses and bundles) through polymorphic associations, enabling cross-product recommendations and content linking.
Setting
Manages system-wide configuration settings using key-value pairs, including tax rates, general settings, and about us content, with support for bulk updates and selective retrieval of settings groups.
SocialMediaAccount
Manages customer social media account connections with status tracking, verification rechecks, and platform-specific type categorization (Facebook, Twitter, etc.).
Subscription
Manages user subscriptions to various content types (courses, ebooks(DEPRECATED)) with tracking including expiration dates, certificate/summary access, renewal status, and completion tracking. Supports both limited-time and unlimited duration subscriptions with automated expiration handling and status notifications.
SubscriptionRecord
Tracks the history of subscription ownership changes and operations, maintaining a detailed audit trail of transfers, modifications, and ownership transitions with associated metadata and causer tracking.
SuspiciousLogin
Tracks potentially suspicious login activities with detailed information including customer status, location data (country), and descriptive details about the suspicious behavior.
Tag
Manages content categorization tags with customizable colors, supporting polymorphic relationships to various content types (publications, articles, FAQs, courses, bundles).
Taggable (Pivot)
Pivot model that manages the polymorphic relationships between tags and taggable content items, enabling flexible content tagging across multiple model types.
TrengoMessage
Manages WhatsApp message communications through Trengo integration, tracking message templates, delivery status, ticket IDs, and customer interactions with support for variable message content and response logging.
User
Manages administrative user accounts with role-based access control, handling user authentication, profile management, and comprehensive activity tracking. while providing granular permission control with Arabic language support.
Video
Stores course video content with metadata including title, length, and promotional status.
Wallet
Manages customer virtual wallet system with polymorphic relationships, tracking both giftable and ungiftable balances, supporting decimal precision for currency amounts and maintaining relationships with transaction history.
WalletHistory
Tracks wallet transactions with comprehensive details including payment methods, amounts, package information, in-app purchase IDs, and expiration dates. Supports auto-generated transaction numbers, multiple operation types, and maintains relationships with associated packages and parent wallets.
WatchedVideo
Tracks user video viewing history and progress, including viewing location and duration information.