🔍 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
| Field | Type | Description |
|---|---|---|
master | Foreign Key User Model | The managing user (owner of this relationship). |
employee | Foreign Key User Model | The subordinate user under the master. |
💡 Meta
unique_together = ('master', 'employee')
Ensures that each pair of (master, employee) is unique—no duplicate relationships.