Skip to main content

Data Model

92 entities, 79 of them tenant-scoped. Each page lists the table, its columns, its relationships, the repository declared over it, and the endpoints that can reach it.

For the hand-drawn overview of how the core tables relate, see the ERD. This section is the exhaustive version, and unlike the ERD it is regenerated on every build.

Entities​

EntityTableColumnsRelationsTenant-scopedModule
Announcementannouncement61YesHR
BillingSubscriptionbilling_subscription140—Billing & Platform
BillingWebhookEventbilling_webhook_event90—Billing & Platform
Bonusbonus81YesPayroll
CertificateTemplatecertificate_template150YesHR
ChatMessagemessages43YesPlatform Misc
CompanyProfilecompany_profile200YesBilling & Platform
Conversationconversation42YesPlatform Misc
CrmActivitycrm_activity105YesCRM
CrmContactcrm_contact103YesCRM
CrmDealcrm_deal115YesCRM
CrmLeadcrm_lead141YesCRM
CrmNotecrm_note35YesCRM
CrmOrganizationcrm_organization122YesCRM
CrmPicklistItemcrm_picklist_item110YesCRM
CrmSettingscrm_settings120YesCRM
CrmSettingsChangecrm_settings_changes61YesCRM
CustomerOrdercustomer_order73YesInventory & Portal
CustomerOrderItemcustomer_order_item42Yes—
DeductionTypededuction_types100YesPayroll
DeMinimisBenefitTypede_minimis_benefit_types120YesPayroll
Departmentdepartment41YesHR
Employeeemployee241YesHR
EmployeeDeductionemployee_deductions122YesPayroll
EwtPayeeewt_payees110YesPH Statutory
EwtTransactionewt_transactions111YesPH Statutory
GovernmentFilinggovernment_filing130YesPH Statutory
InterviewFeedbackinterview_feedback62YesRecruitment
InterviewScheduleinterview_schedule62YesRecruitment
InventoryIteminventory_item91YesInventory & Portal
InventoryLotinventory_lot72YesInventory & Portal
InventoryOrderinventory_order72YesInventory & Portal
InventoryStockinventory_stock22YesInventory & Portal
ItemCategoryitem_category30YesInventory & Portal
ItemPriceitem_price112YesInventory & Portal
ItemPriceHistoryitem_price_history53YesInventory & Portal
ItemSerialitem_serial52YesInventory & Portal
JobApplicantjob_applicant122YesRecruitment
JobApplicantResumejob_applicant_resume61YesRecruitment
JobOfferjob_offer243YesRecruitment
JobOpeningjob_opening111YesRecruitment
JobRequisitionjob_requisition73YesRecruitment
LeaveBalanceleave_balance22YesHR
LeaveRequestleave_request83YesHR
LeaveRequestTypeleave_request_type30YesBilling & Platform
Notificationnotifications51YesPlatform Misc
OrderStageorder_stage62Yes—
OvertimeRequestovertime_request61YesBilling & Platform
PagibigContributionRatepagibig_contribution_rates60—PH Statutory
Payrollpayroll100YesPayroll
PayrollApprovalpayroll_approval32YesBilling & Platform
PayrollChangepayroll_changes61YesPayroll
PayrollSettingspayroll_settings710YesPayroll
PayrollSettingsChangepayroll_settings_changes61YesPayroll
PayrollTransactionpayroll_transactions52YesPayroll
Payslippayslip522YesPayroll
PayslipDeductionItempayslip_deduction_items42YesPayroll
PayslipHistorypayslip_history81YesPayroll
PayslipTemplatepayslip_template90YesPayroll
PayslipTemplateSettingspayslip_template_settings70YesPayroll
Permissionpermission40—Auth & Identity
PhHolidayph_holidays70YesBilling & Platform
PhilhealthContributionRatephilhealth_contribution_rates60—PH Statutory
PortalUserportal_user80—Inventory & Portal
Positionposition41YesHR
PurchaseReceivingpurchase_receiving63YesInventory & Portal
PurchaseReceivingItempurchase_receiving_item33Yes—
RecognitionAwardrecognition_award82YesHR
RefreshTokenrefresh_tokens81——
ReimbursementRequestreimbursement_requests73YesPayroll
ReimbursementTransactionreimbursement_transactions61YesPayroll
Rolerole62—Auth & Identity
SavedViewsaved_view81YesPlatform Misc
ShipmentTrackingshipment_tracking62YesInventory & Portal
SssContributionRatesss_contribution_rates110—PH Statutory
StaffingPlanstaffing_plan63YesRecruitment
StaffingPlanItemstaffing_plan_item42YesRecruitment
StockTransactionstock_transaction83YesInventory & Portal
Storestore90YesInventory & Portal
StoreInventorystore_inventory32YesInventory & Portal
Suppliersupplier70YesInventory & Portal
Tenanttenant110—Billing & Platform
Timesheettimesheet72YesHR
TinCompliancetin_compliance31YesPH Statutory
Userusers112—Inventory & Portal
UserLoguser_log51—Auth & Identity
UserNavPreferenceuser_nav_preference31YesPlatform Misc
Warehousewarehouse40YesInventory & Portal
WarehouseLocationwarehouse_location72YesInventory & Portal
WarehouseTransferwarehouse_transfer54YesInventory & Portal
WithholdingTaxBracketwithholding_tax_brackets70—PH Statutory
WorkSuspensionwork_suspensions50YesHR

Global tables​

Entities that do not extend TenantOwned. Their rows are shared by every tenant, which is correct for reference data and for the tenant registry itself, and a bug for anything else — TenantCoverageTest walks the JPA metamodel and fails the build on an entity that is neither tenant-owned nor declared global.

EntityTableColumns
BillingSubscriptionbilling_subscription14
BillingWebhookEventbilling_webhook_event9
PagibigContributionRatepagibig_contribution_rates6
Permissionpermission4
PhilhealthContributionRatephilhealth_contribution_rates6
PortalUserportal_user8
RefreshTokenrefresh_tokens8
Rolerole6
SssContributionRatesss_contribution_rates11
Tenanttenant11
Userusers11
UserLoguser_log5
WithholdingTaxBracketwithholding_tax_brackets7

Enums​

EnumValues
AbsentDeductionPolicy—
BreakDeductionPolicy—
CertificateDesign—
ContributionSchedule—
DeductionAmountBasis—
HolidayEligibilityPolicy—
HolidayLeaveInteractionPolicy—
LateDeductionPolicy—
PayFrequency—
PayrollRoundingMode—
RecognitionCategory—
SubscriptionStatus—
TaxPayPeriod—
TenantStatus—
TimesheetPayPolicy—
TimesheetStatus—

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/.