Skip to main content

CompanyProfile

The CompanyProfile entity, mapped to the company_profile table.

Tablecompany_profile
Tenant-scopedYes — extends TenantOwned
Columns22
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—
emailStringemailYesBIR 1601-C item 12 and similar "email address" lines on BIR returns.
topWithholdingAgentBooleantop_withholding_agent—1604-E / 1604-F item 8A: a private top withholding agent.
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
GovernmentFormsController/api/government-forms16PH Statutory
PayrollController/api/payroll10Payroll
PublicPayrollSimulatorController/api/public/payroll-simulator3Payroll
PublicSignupController/api/public/signup2Billing & Platform
RecognitionAwardController/api/recognition-awards7HR
TenantAdminController/api/admin/tenants13Billing & 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/.