Notification
The Notification entity, mapped to the notifications table.
| Table | notifications |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 5 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/Notification.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
notificationId | Integer | notification_id | — | primary key, generated |
notificationType | String | notification_type | — | — |
notificationContent | String | notification_content | — | — |
createdAt | LocalDateTime | created_at | — | — |
readStatus | Boolean | read_status | — | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
employee | @ManyToOne | Employee | employee_id | Yes |
Neighbourhood
Repository
NotificationRepository
Declared over Notification with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/NotificationRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByEmployee_EmployeeNumberOrderByCreatedAtDesc(Integer employeeNumber) | List<Notification> | derived |
markAllReadByEmployee(@Param("empId") Integer empId) | int | explicit @Query, modifying |
Reached by
These controllers hold — directly or through a service they depend on — a repository over Notification.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| ConversationController | /api/conversations | 5 | Platform Misc |
| JobOfferController | /api/job-offers | 6 | Recruitment |
| NotificationController | /api/notifications | 3 | Platform Misc |
| OrderController | /api/inventory/orders | 6 | Inventory & Portal |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.