TTTOP TECH MAPPUBLIC DOCUMENTATION

01 · Data architecture

Database
Schema Map

49 ตาราง แยกตาม domain พร้อม keys, status/financial fields, relationships, API และหน้า frontend ที่เกี่ยวข้อง ไม่มี row data

49 tablesSchema onlyNo customer rows

ตารางตาม business domain

ค้นหาชื่อตารางหรือ field/domain ได้ ตารางฉบับละเอียดทุก field อยู่ใน Markdown

DomainTablesKey status / financial concernsPrimary consumers
Customer & KYCcustomers, customer_addresses, customer_employments, customer_references, customer_relations, customer_status_history, customer_referrals, guarantors, minor_guardianscustomer/portal status, identity field names, KYC completenesscustomer APIs; customers/contracts/customer portal
Savingssavings_accounts, savings_transactions, savings_periods, savings_allocations, savings_account_promotions, savings_account_creditstarget/minimum/balance inputs, verification status, period status, conversionsavings APIs; contracts/customer views
Contractscontracts, contract_documents, contract_benefits, contract_promotions, contract_payment_intentscontract lifecycle, down payment, finance/loan/installment values, intent verificationcontract/payment APIs; contracts/customer portal
Paymentspayment_schedules, payments, payment_allocations, payment_reschedules, penalty_rulesdue dates, amounts, penalties, paid/verification/approval statusschedule/intents/payoff/dashboard/follow-ups
Cash salescash_sales, cash_sale_refunds, cash_sale_promotionsgross/discount/net/refund amounts, transaction statuscash-sales APIs and page; dashboard
Promotionspromotions, promotion_packages, promotion_benefits, promotion_benefit_items, promotion_eligibility_rules, promotion_events, promotion_event_applications, promotion_event_referrals, promotion_redemptionsactive windows, qualification/reward values, application/redemption statuspromotion APIs; promotions/contracts/cash/customer portal
Productsproductscost and selling price, variant descriptorsproducts/contracts/cash sales
Staff & authorizationemployees, roles, role_permissions, auth_login_failuresaccount status, role/permission flags, abuse protection metadataauth and employee APIs
Service workflowfollow_up_logsfollow-up type/date/status, payment-pause requestfollow-up/support APIs; follow-ups/dashboard
Integrity & auditaudit_logs, business_idempotency_keys, financial_action_requests, document_sequences, schema_migrations, migration_data_conflictsmutation trace, idempotency, action authorization, sequence/migration stateshared backend helpers and tooling

Core relationship spine

Customercustomers → savings_accounts → savings_transactions → savings_allocations → savings_periods
Contractcustomers → contracts → payment_schedules → payments
Payment reviewcontracts → contract_payment_intents → payment_schedules
Salecustomers → cash_sales → cash_sale_refunds
Promotionpromotions → promotion_packages → benefits/rules → applications/redemptions