Skip to main content

UserLog

The UserLog entity, mapped to the user_log table.

Tableuser_log
Tenant-scopedNo — global table
Columns5
Relationships1
Sourcebackend/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​

FieldTypeColumnNullNotes
logIdLonglog_id—primary key, generated
tenantIdIntegertenant_idYesTenant the action happened in, or null for a platform-level action by a super admin.
actionStringaction——
ipAddressStringip_addressYes—
logDateTimeLocalDateTimelog_date_time——

Relationships​

FieldKindTargetJoin columnRequired
user@ManyToOneUseruser_idYes

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.

ControllerBase pathEndpointsModule
AuditLogController/api/audit-logs1Auth & Identity
AuthController/api/auth5Auth & Identity
DemoDataController/api/system-admin/demo-data3Billing & Platform
PayrollController/api/payroll8Payroll
PublicSignupController/api/public/signup2Billing & 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/.