🔍 Overview

The Employee model creates a many-to-many relationship between users of the system. Each record links one master user to one employee user. This solution is designed to grant MANAGER ADMIN permissions to view subordinate accounts. The master will be able to view and edit the employee’s links, as well as receive the employee’s Telegram notifications.


📑 Fields

FieldTypeDescription
masterForeign Key User ModelThe managing user (owner of this relationship).
employeeForeign Key User ModelThe subordinate user under the master.

💡 Meta

  • unique_together = ('master', 'employee')
    Ensures that each pair of (master, employee) is unique—no duplicate relationships.