UserLog
The UserLog entity, mapped to the user_log table.
| Table | user_log |
| Tenant-scoped | No — global table |
| Columns | 5 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/UserLog.java |
Not tenant-scoped
This entity does not extend TenantOwned, so its rows are shared across every tenant. TenantCoverageTest allows that only for tables deliberately declared global.
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
logId | Long | log_id | — | primary key, generated |
tenantId | Integer | tenant_id | Yes | Tenant the action happened in, or null for a platform-level action by a super admin. |
action | String | action | — | — |
ipAddress | String | ip_address | Yes | — |
logDateTime | LocalDateTime | log_date_time | — | — |
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
user | @ManyToOne | User | user_id | Yes |
Neighbourhood
Repository
UserLogRepository
Declared over UserLog with id type Long, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/UserLogRepository.java
Reached by
These controllers hold — directly or through a service they depend on — a repository over UserLog.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| AuditLogController | /api/audit-logs | 1 | Auth & Identity |
| AuthController | /api/auth | 5 | Auth & Identity |
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollController | /api/payroll | 8 | Payroll |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
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/.