Skip to main content

Notification

The Notification entity, mapped to the notifications table.

Tablenotifications
Tenant-scopedYes — extends TenantOwned
Columns5
Relationships1
Sourcebackend/src/main/java/com/motorph/payroll/model/Notification.java

Columns​

FieldTypeColumnNullNotes
notificationIdIntegernotification_id—primary key, generated
notificationTypeStringnotification_type——
notificationContentStringnotification_content——
createdAtLocalDateTimecreated_at——
readStatusBooleanread_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​

FieldKindTargetJoin columnRequired
employee@ManyToOneEmployeeemployee_idYes

Neighbourhood​

Repository​

NotificationRepository​

Declared over Notification with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/NotificationRepository.java

MethodReturnsNotes
findAllByEmployee_EmployeeNumberOrderByCreatedAtDesc(Integer employeeNumber)List<Notification>derived
markAllReadByEmployee(@Param("empId") Integer empId)intexplicit @Query, modifying

Reached by​

These controllers hold — directly or through a service they depend on — a repository over Notification.

ControllerBase pathEndpointsModule
ConversationController/api/conversations5Platform Misc
JobOfferController/api/job-offers6Recruitment
NotificationController/api/notifications3Platform Misc
OrderController/api/inventory/orders6Inventory & 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/.