Skip to main content

CompanyProfile

The CompanyProfile entity, mapped to the company_profile table.

Tablecompany_profile
Tenant-scopedYes — extends TenantOwned
Columns20
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/CompanyProfile.java

Columns​

FieldTypeColumnNullNotes
companyProfileIdIntegercompany_profile_id—primary key, generated
registeredNameStringregistered_name——
tinStringtinYes—
branchCodeStringbranch_code——
rdoCodeStringrdo_codeYes—
registeredAddressStringregistered_addressYes—
zipCodeStringzip_codeYes—
phoneNumberStringphone_numberYes—
contactPersonStringcontact_personYes—
contactPositionStringcontact_positionYes—
sssEmployerNumberStringsss_employer_numberYes—
philhealthEmployerNumberStringphilhealth_employer_numberYes—
pagibigEmployerNumberStringpagibig_employer_numberYes—
withholdingAgentCategoryStringwithholding_agent_category——
legalEntityTypeStringlegal_entity_type——
msmeSizeStringmsme_size——
bmbeIncomeTaxExemptBooleanbmbe_income_tax_exempt——
createdDateLocalDateTimecreated_dateYes—
lastModifiedByStringlast_modified_byYes—
lastModifiedDateLocalDateTimelast_modified_dateYes—

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.

Repository​

CompanyProfileRepository​

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

MethodReturnsNotes
findFirstByOrderByCompanyProfileIdAsc()Optional<CompanyProfile>derived

Reached by​

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

ControllerBase pathEndpointsModule
CertificateTemplateController/api/certificate-templates8HR
CompanyProfileController/api/company-profile2Platform Misc
DemoDataController/api/system-admin/demo-data3Billing & Platform
EwtFormsController/api/government-forms/ewt4PH Statutory
GovernmentFormsController/api/government-forms8PH Statutory
PayrollController/api/payroll8Payroll
PublicSignupController/api/public/signup2Billing & Platform
RecognitionAwardController/api/recognition-awards7HR
TenantAdminController/api/admin/tenants7Billing & 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/.