Skip to main content

PortalUser

The PortalUser entity, mapped to the portal_user table.

Tableportal_user
Tenant-scopedNo — global table
Columns8
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/PortalUser.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
portalUserIdIntegerportal_user_id—primary key, generated
emailStringemail—unique
fullNameStringfull_name——
companyNameStringcompany_nameYes—
passwordHashStringpassword_hash——
isActivebooleanis_active——
createdAtLocalDateTimecreated_at——
updatedAtLocalDateTimeupdated_at——

Referenced by​

EntityFieldKind
CustomerOrderportalUser@ManyToOne

Neighbourhood​

Repository​

PortalUserRepository​

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

MethodReturnsNotes
findByEmail(String email)Optional<PortalUser>derived
existsByEmail(String email)booleanderived

Reached by​

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

ControllerBase pathEndpointsModule
PortalAuthController/api/portal/auth2Inventory & Portal
PortalOrderController/api/portal/orders4Inventory & Portal
PortalProfileController/api/portal/profile3Inventory & 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/.