CompanyProfile
The CompanyProfile entity, mapped to the company_profile table.
| Table | company_profile |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 20 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/CompanyProfile.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
companyProfileId | Integer | company_profile_id | — | primary key, generated |
registeredName | String | registered_name | — | — |
tin | String | tin | Yes | — |
branchCode | String | branch_code | — | — |
rdoCode | String | rdo_code | Yes | — |
registeredAddress | String | registered_address | Yes | — |
zipCode | String | zip_code | Yes | — |
phoneNumber | String | phone_number | Yes | — |
contactPerson | String | contact_person | Yes | — |
contactPosition | String | contact_position | Yes | — |
sssEmployerNumber | String | sss_employer_number | Yes | — |
philhealthEmployerNumber | String | philhealth_employer_number | Yes | — |
pagibigEmployerNumber | String | pagibig_employer_number | Yes | — |
withholdingAgentCategory | String | withholding_agent_category | — | — |
legalEntityType | String | legal_entity_type | — | — |
msmeSize | String | msme_size | — | — |
bmbeIncomeTaxExempt | Boolean | bmbe_income_tax_exempt | — | — |
createdDate | LocalDateTime | created_date | Yes | — |
lastModifiedBy | String | last_modified_by | Yes | — |
lastModifiedDate | LocalDateTime | last_modified_date | Yes | — |
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
| Method | Returns | Notes |
|---|---|---|
findFirstByOrderByCompanyProfileIdAsc() | Optional<CompanyProfile> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over CompanyProfile.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| CertificateTemplateController | /api/certificate-templates | 8 | HR |
| CompanyProfileController | /api/company-profile | 2 | Platform Misc |
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| EwtFormsController | /api/government-forms/ewt | 4 | PH Statutory |
| GovernmentFormsController | /api/government-forms | 8 | PH Statutory |
| PayrollController | /api/payroll | 8 | Payroll |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
| RecognitionAwardController | /api/recognition-awards | 7 | HR |
| TenantAdminController | /api/admin/tenants | 7 | 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/.