Data Model & Database Structure
Entity-relationship model, table dictionary, ledger design, keys, indexing, partitioning and retention for the Engagement & Loyalty Platform — including bank events, trigger rules, scratch cards and milestones.
Data Architecture Overview
The model separates four data domains, each owned by its services and aligned to the container architecture:
snake_case tables & columns; surrogate BIGINT/UUID primary keys; every table carries created_at, updated_at, created_by, updated_by. Money in minor units; points as BIGINT. Soft-delete via status/is_active, never hard delete on financial tables.Entity-Relationship Diagram
Core Table — loyalty_account
| Column | Type | Key | Description |
|---|---|---|---|
| account_id | BIGINT | PK | Surrogate identifier. |
| customer_ref | VARCHAR(64) | Tokenised the Bank customer reference (held inline; no separate customer table in the current build). | |
| card_ref | VARCHAR(64) | UQ | Tokenised card reference (unique); held inline. |
| bin | VARCHAR(12) | BIN of the card (migration 010); resolves the card to its variant via card_product. | |
| card_product_id | BIGINT | FK | → card_product (BIN → variant mapping; migration 010). |
| card_variant | VARCHAR(24) | Classic/Gold/Platinum/Signature/Corporate — the master the accrual rule is scoped to. | |
| current_tier | VARCHAR(16) | Denormalised active tier; authoritative history in account_tier. | |
| status | VARCHAR(16) | active / dormant / blocked / closed. | |
| enrolment_date | DATE | Programme enrolment date. | |
| anniversary_md | VARCHAR(5) | MM-DD anniversary for lifecycle rewards. | |
| created_at / updated_at | TIMESTAMPTZ | Audit timestamps. |
loyalty_account (customer_ref, card_ref) — there are no separate customer / card tables yet. The ER diagram (Fig 1) and the full entity inventory below show the target normalised model (incl. customer, card, point_lot, fulfilment_request, etc.); entities not present in migrations 001–016 are build-targets. Point expiry is rule-driven via accrual_rule.points_expiry_days (default 730) — there is no expiry_date column on ledger_entry; the FIFO expiry batch job that posts EXPIRY entries is roadmap.Core Table — ledger_entry (system of record)
| Column | Type | Key | Description |
|---|---|---|---|
| entry_id | BIGINT | PK | Immutable entry id. |
| account_id | BIGINT | FK | → loyalty_account. |
| entry_type | VARCHAR(16) | ACCRUAL / REDEMPTION / REVERSAL / EXPIRY / ADJUSTMENT / CLAWBACK / TRANSFER / MIGRATION. | |
| direction | CHAR(1) | C (credit) / D (debit). | |
| points | BIGINT | Point quantity (always positive; direction signs it). | |
| source_type | VARCHAR(24) | transaction / campaign / manual / fulfilment / tier / referral / transfer / clawback / migration / gamification. | |
| source_ref | VARCHAR(64) | FK reference to txn / campaign / redemption. | |
| rule_id | BIGINT | FK | Accrual/campaign rule applied (nullable). |
| idempotency_key | VARCHAR(120) | UQ | Guarantees exactly-once posting. |
| reversal_of | BIGINT | FK | Original entry for reversals. |
| reason_code | VARCHAR(24) | For adjustments/reversals. | |
| posted_at | TIMESTAMPTZ | Posting time. | |
| created_by | VARCHAR(48) | Service or admin actor. | |
| funding_source | VARCHAR(12) | bank / merchant — who funds this accrual. Default bank; flipped to merchant by the attribution run. | |
| funding_merchant_id | BIGINT | FK | → merchant that funds the accrual (nullable; set when funding_source='merchant'). |
| funded_minor | BIGINT | Rupee value (paise) of the merchant-funded share of this entry. 0 for bank-funded. |
point_balance (available, pending, locked, lifetime) is maintained as a materialised projection of ledger_entry and reconciled nightly against the entry sum, guaranteeing ledger ↔ balance integrity.funding_* columns let MIS split outstanding liability into bank-funded vs merchant-funded without a second ledger. The merchant-funded slice is the basis of the per-merchant settlement (see Merchant-Funded Offers, Attribution & Settlement below).Points Expiry — point_lot & the scheduler migration 017
A point lot is a parcel of points created by one ACCRUAL credit, carrying its own expiry date (posted_at + accrual_rule.points_expiry_days). Redemptions/clawbacks consume lots in expiry order (soonest-expiring first; config_param points.consumption_order), so the daily expiry job lapses only the unspent, past-dated points — posting an idempotent EXPIRY ledger debit. The lot table is maintained by the loyalty-scheduler worker's reconcile pass from the append-only ledger, so SUM(open lot.points_remaining) tracks point_balance.available.
| Column | Type | Key | Description |
|---|---|---|---|
| lot_id | BIGINT | PK | Surrogate. |
| account_id | BIGINT | FK | → loyalty_account. |
| ledger_entry_id | BIGINT | FK · UQ | The ACCRUAL credit that created the lot (unique → idempotent reconcile). |
| rule_id | BIGINT | Accrual rule that drove the expiry window (nullable). | |
| points_earned | BIGINT | Original lot size. | |
| points_remaining | BIGINT | Unconsumed points (FIFO-by-expiry drawdown). | |
| earned_at | TIMESTAMPTZ | From the credit's posted_at. | |
| expires_at | DATE | earned_at + rule.points_expiry_days (default 730). | |
| status | VARCHAR(12) | open / consumed / expired. |
Scheduler run history & status. cr.job_schedule holds one row per scheduled job (job_key, interval_sec, enabled, last_status, last_run_at, next_run_at); cr.job_run records every execution (status, trigger, duration_ms, lots_expired, points_expired, entries_posted, rules_applied JSONB, result JSONB, artifact_path). Each run is ACID and writes a kept JSON artifact; the Admin Scheduler page reads these for status and pull-down results.
Core Table — transaction
| Column | Type | Key | Description |
|---|---|---|---|
| txn_id | BIGINT | PK | Internal id. |
| external_txn_ref | VARCHAR(64) | UQ | Source system reference (dedupe key). |
| account_id | BIGINT | FK | → loyalty_account. |
| amount_minor | BIGINT | Transaction amount in paise. | |
| currency | CHAR(3) | ISO 4217 (INR default). | |
| mcc | VARCHAR(4) | Merchant category code. | |
| merchant_id | VARCHAR(40) | FK | Merchant reference (nullable). |
| channel | VARCHAR(16) | POS / ECOM / ATM / INTL. | |
| txn_type | VARCHAR(24) | purchase / refund / fee / emi / cash_advance. | |
| txn_status | VARCHAR(16) | posted / reversed. | |
| txn_datetime | TIMESTAMPTZ | Transaction time. | |
| accrual_status | VARCHAR(16) | pending / accrued / excluded / reversed. |
Configuration Tables
| Table | Purpose | Notable columns |
|---|---|---|
| accrual_rule | Earn rules | variant, mcc_set, merchant_set, channel, earn_rate, multiplier, caps, exclusions, valid_from/to, version, status. |
| campaign | Campaigns | type, segment_id, conditions(JSONB), reward_def(JSONB), budget, start/end, enrolment_mode, cap, version, status. |
| milestone | Milestone ladders | campaign_id, threshold, reward_def, sequence. |
| campaign_enrolment | Per-customer state | campaign_id, account_id, progress, unlocked_at, reward_status. |
| segment | Audience definitions | criteria(JSONB), type(static/dynamic), size. |
| reward_catalogue | Catalogue items | sku, category, partner_id, point_price, cash_value_minor, stock, eligibility(JSONB), tnc, expiry, funding_type. |
| notification_template | Message templates | channel, locale, subject, body, variables(JSONB), version, status. |
| config_param | System parameters | key, value, scope, data_type — see CR-CFG-008. |
Redemption, Merchant & Settlement Tables
| Table | Purpose | Notable columns |
|---|---|---|
| redemption | Burn transactions | account_id, catalogue_sku, points_debited, cash_paid_minor (points+cash), method(voucher/statement_credit/cashback/pos/charity/emi_waiver/partner_transfer), fulfilment_mode(instant/deferred), status, fulfilment_ref, reversed_of, idempotency_key, request_signature, signature_alg, signing_key_id, nonce, signed_at, verification_status, verified_at. |
| fulfilment_request | Partner fulfilment calls | redemption_id, partner_id, request_payload(JSONB), response_payload(JSONB), request_signature, response_signature, signature_alg, signature_verified, status, attempts. |
| voucher | Issued vouchers | redemption_id, code(encrypted), partner, value, issued_at, expiry, status(active/used/expired). |
| fp_mid / fp_tid | On redemption | Fulfilment-partner acceptance MID/TID stamped on consumption (for partner consumption reports). Nullable. |
The merchant-funded and fulfilment-partner entities are detailed in their own section below.
Merchant-Funded Offers, Attribution & Settlement
Merchant-funded rewards let a merchant co-fund (or fully fund) the points a customer earns when spending with them — including split-multiplier offers where bank and merchant each fund a share of a headline multiplier. The accrual posts as a normal ledger_entry; an idempotent attribution run then matches eligible accruals to active offers, records the funded share on merchant_txn_map, flags the ledger entry funding_source='merchant', and a monthly settlement rolls the attributed lines into a per-merchant payable (FR-M5-01..05).
| Column | Type | Key | Description |
|---|---|---|---|
| merchant — merchant master | |||
| merchant_id | BIGINT | PK | Surrogate id. |
| code | VARCHAR(40) | UQ | Business code, e.g. MYNTRA, MER-DINE-01. |
| name / category / mcc | TEXT / VARCHAR | Display name, category, primary MCC. | |
| kyc_ref | VARCHAR(64) | KYC reference for onboarding. | |
| settlement_terms | JSONB | e.g. {"net_days":30}. | |
| status | VARCHAR(16) | active / inactive / suspended. | |
| merchant_offer — funded offer definition | |||
| offer_id | BIGINT | PK | Surrogate id. |
| merchant_id | BIGINT | FK | → merchant. |
| match | JSONB | Eligibility predicate: {"mcc_in":[…],"merchant_in":[…],"channel_in":[…]}. | |
| funding_model | VARCHAR(24) | per_point / pct_of_point_value / flat_per_txn / multiplier_split. | |
| funding_rate | NUMERIC(10,4) | Paise/point | percent | paise/txn (per model; 0 for multiplier_split). | |
| point_value_minor | INT | Value of 1 point in paise (default 25 = ₹0.25), used by pct/multiplier models. | |
| applies_to_variant | VARCHAR(24)[] | BIN/variant scope — e.g. {PLATINUM,SIGNATURE}; NULL = all variants. | |
| bank_multiplier / merchant_multiplier | NUMERIC(6,2) | For multiplier_split: e.g. 5 + 5 → 10X total; merchant funds its share of earned points. | |
| budget_minor / consumed_minor | BIGINT | Funding cap and running consumption (attribution stops at budget). | |
| period_start / period_end | DATE | Offer effective window. | |
| status | VARCHAR(20) | draft / active / paused / ended. | |
| merchant_txn_map — attribution (accrual → offer), idempotent | |||
| map_id | BIGINT | PK | Surrogate id. |
| offer_id / merchant_id | BIGINT | FK | → merchant_offer / merchant. |
| ledger_entry_id | BIGINT | FK | → the funded ACCRUAL entry. UNIQUE(offer_id, ledger_entry_id) guarantees idempotent attribution. |
| txn_ref / account_id | VARCHAR / BIGINT | Source txn reference & loyalty account. | |
| funded_points / funded_minor | BIGINT | Merchant-funded points and paise for this entry. | |
| txn_datetime / mapped_at | TIMESTAMPTZ | Txn time (settlement period basis) & attribution time. | |
| settlement — per-merchant monthly payable | |||
| settlement_id | BIGINT | PK | Surrogate id. |
| merchant_id | BIGINT | FK | → merchant. UNIQUE(merchant_id, period). |
| period | VARCHAR(7) | YYYY-MM. | |
| txn_count / funded_points / amount_due_minor | INT / BIGINT | Rolled-up totals from the attributed lines. | |
| status | VARCHAR(16) | draft / generated / settled. | |
| generated_at / settled_at | TIMESTAMPTZ | Generation & mark-settled timestamps. | |
| settlement_line — per-transaction detail of a settlement | |||
| line_id | BIGINT | PK | Surrogate id. |
| settlement_id | BIGINT | FK | → settlement (ON DELETE CASCADE). |
| txn_ref / account_id / funded_points / funded_minor / txn_datetime | mixed | Snapshot of each attributed line at generation time. | |
applies_to_variant = {PLATINUM,SIGNATURE}. A ₹5,000 dining-equivalent spend earning 1,000 points has 500 points attributed to Myntra (merchant_multiplier ÷ total = 5÷10); at point_value_minor = 25 that is funded_minor = 12,500 paise = ₹125 on merchant_txn_map, rolled into the monthly Myntra settlement. Configuration of this offer is in CR-CFG-008.Fulfilment-Partner Consumption & Billing
Fulfilment partners consume points (they fulfil redemptions from the catalogue) and the bank bills them for the consumed value, net of a contracted discount. Billing = consumed_points × point_value_minor × (1 − bank_discount_pct/100). The points-API contract a partner integrates with is specified in CR-FPI-015 (FR-M5-06..08).
| Column | Type | Key | Description |
|---|---|---|---|
| fulfilment_partner — partner master | |||
| fp_id | BIGINT | PK | Surrogate id. |
| code / name | VARCHAR / TEXT | UQ | e.g. AMZ-FP Amazon Fulfilment. |
| type | VARCHAR(24) | voucher / marketplace / dining / travel / d2c / hotdeals. | |
| catalogue_partner_id | BIGINT | FK | → partner — links consumption via redeemed catalogue SKUs. |
| point_value_minor | INT | Value of 1 point in paise (default 25 = ₹0.25). | |
| bank_discount_pct | NUMERIC(5,2) | Discount the partner gives the bank (drives net payable). | |
| contract_ref / status | VARCHAR | Contract reference; active / inactive. | |
| fp_invoice — per-period consumption invoice | |||
| invoice_id | BIGINT | PK | Surrogate id. |
| fp_id | BIGINT | FK | → fulfilment_partner. UNIQUE(fp_id, period). |
| period | VARCHAR(7) | YYYY-MM. | |
| consumed_points / distinct_users / txn_count | BIGINT / INT | Consumption volumes for the period. | |
| point_value_minor / gross_minor | INT / BIGINT | Unit value and gross value (points × value). | |
| discount_pct / net_payable_minor | NUMERIC / BIGINT | Applied discount and net amount payable to the bank. | |
| status / generated_at | VARCHAR / TIMESTAMPTZ | draft / generated / invoiced / paid. | |
point_value_minor = 25 with bank_discount_pct = 5 → gross = ₹1,25,000, net payable = 500000 × 25 × (1 − 0.05) = ₹1,18,750. MID/TID on each consumed redemption (redemption.fp_mid / fp_tid) feed the partner-facing consumption report (CR-FPI-015).request_signature, signature_alg, signing_key_id, nonce, signed_at). The redemption service verifies the signature and single-use nonce against the channel/customer signing key (Vault/KMS) and sets verification_status = verified before any ledger debit — providing anti-tamper, anti-replay and non-repudiation. Partner fulfilment calls likewise sign request & response and record signature_verified on fulfilment_request. See CR-DBS-013 and CR-SEC-009.Tiers, Transfers, Referral & Risk Tables
Entities supporting loyalty tiers, points pooling/transfer, partner conversion, referral rewards and points-integrity controls (see FR-M10/M11/M12).
| Table | Purpose | Notable columns |
|---|---|---|
| tier_rule | Tier ladder & qualification | tier_code, sequence, qualify_metric(spend_minor/points), qualify_threshold, window_type(rolling/anniversary), downgrade_threshold, grace_days, benefits(JSONB), version, status. |
| account_tier | Per-account tier state & history | account_id, tier_code, qualified_at, expires_at, prior_tier, change_reason, evaluated_window. |
| account_pool | Family / supplementary pooling | pool_id, primary_account_id, member_account_id, role(primary/member), share_pct, status. |
| points_transfer | Member & partner transfers | from_account_id, to_account_id(nullable), partner_program_id(nullable), points_debited, ratio, fee_points, type(member/partner), status, external_ref, reversed_of. |
| partner_program | Airline/hotel transfer partners | name, type(airline/hotel), conversion_ratio, min_points, max_points, api_endpoint, status. |
| referral | Referral attribution & reward | referrer_account_id, referee_ref, code, qualify_event, qualified_at, referrer_points, referee_points, reward_status, fraud_flag. |
| gamification_grant | Scratch card / spin reward | account_id, game_type, trigger_event, outcome(JSONB), points_awarded, ledger_entry_id, status. |
| auto_redeem_rule | Customer auto-redeem prefs | account_id, trigger(threshold/scheduled), threshold_points, schedule_cron, method, target_sku, status. |
| clawback | Fraud/chargeback recovery | account_id, source_ref, reason_code, points_recovered, value_recovered_minor, residual_negative, status, ledger_entry_id. |
| dispute | Points-dispute workflow | account_id, raised_by, ledger_ref, category, description, status(open/investigating/resolved/rejected), resolution, adjustment_entry_id, decided_at. |
Engagement Tables — Bank Events, Triggers, Scratch Cards & Milestones migration 022
The event-trigger engagement model (see FR-M13/M14/M15 and CR-API-006) adds five tables in schema cr (migration 022_axis_engagement.sql, seed 008_axis_triggers.sql). All reward postings reuse cr.ledger_entry + cr.point_balance with idempotency keys (scr:{scratchCardId}, evt:{eventRef}:{triggerId}).
| Table | Purpose | Notable columns |
|---|---|---|
| cr.bank_event | Ingested bank lifecycle events | event_id (PK), event_ref (UK — idempotency), event_type (USER_REGISTERED/CARD_ACTIVATED/KYC_COMPLETED/UPI_TRANSACTION/BILL_PAYMENT/SALARY_CREDIT/FD_BOOKED), account_id (FK → loyalty_account), amount_minor, occurred_at, payload (JSONB), received_at. |
| cr.trigger_rule | Event→reward rules (admin-config) | trigger_rule_id (PK), name, event_type, conditions (JSONB: first_occurrence, min_amount_minor, max_per_window {count,window}), prizes (JSONB weighted prize table), reward_type (SCRATCH_CARD/POINTS), status, version. |
| cr.scratch_card | Issued scratch cards (prize hidden) | scratch_card_id (PK), account_id (FK), trigger_rule_id (FK, NULL for milestone-issued), source_event_id (FK → bank_event), milestone_code (FK → milestone_def, nullable), state (ISSUED/SCRATCHED/EXPIRED), prize (JSONB — hidden until scratched), ledger_entry_id (FK, nullable), issued_at, scratched_at, expires_at (default +30d), idempotency_key (UK). |
| cr.milestone_def | Milestone definitions | code (PK, e.g. UPI_STREAK_3_WEEKLY), name, description, source (an eventType or CARD_SPEND), target_count, target_amount_minor, window (lifetime/weekly/monthly), reward (JSONB — {"type":"SCRATCH_CARD","prizes":[…]} or {"type":"POINTS","points":N}), status. |
| cr.milestone_progress | Per-account milestone progress | progress_id (PK), account_id (FK), milestone_code (FK → milestone_def), window_start, progress_count, progress_amount_minor, status (in_progress/completed/rewarded), completed_at. |
trigger_rule_id (event-issued) or a milestone_code (milestone-issued) plus the source_event_id. Its prize is drawn from the weighted prizes/reward table at issue time and stored in prize, never returned while ISSUED. On scratch, a POINTS prize posts one cr.ledger_entry ACCRUAL (source_type scratch_card, key scr:{scratchCardId}) and links back via ledger_entry_id; re-scratch is a no-op, expired scratch returns 409.Governance & Audit Tables
| Table | Purpose | Notable columns |
|---|---|---|
| app_user | Admin users | username, idp_subject, role_id, status, last_login. |
| role / permission / role_permission | RBAC | role name, permission key, module, action — see CR-CFG-008. |
| approval_request | Maker-checker | entity_type, entity_id, change(JSONB), maker, checker, status, decided_at, notes. |
| audit_log | Immutable audit | actor, action, entity_type, entity_id, before(JSONB), after(JSONB), ip, occurred_at — append-only, range-partitioned by month. |
| api_access_log | API access (SIEM) | client_id, actor, method, path, status_code, latency_ms, ip, trace_id, request_id, occurred_at — partitioned. |
| integration_log | External integration calls | system, direction, operation, correlation_id, request_hash, response_hash, http_status, status, latency_ms, attempt, occurred_at — partitioned. |
| reconciliation | Recon runs | run_date, scope, source_total, ledger_total, variance, status; exceptions in recon_exception. |
| budget | Budgets | scope(programme/campaign), allocated, consumed, threshold_pct, status. |
| report_definition | MIS report catalogue | code, name, category(liability/reconciliation/settlement/campaign_performance/redemption/fulfilment/expiry_reversal/budget/audit), query_def(JSONB), output_formats[], schedule_cron, status. |
| report_run | Report executions | report_id, params(JSONB), period_start/end, format, row_count, artifact_uri, artifact_hash, status, requested_by, started_at, completed_at. |
Full Entity Inventory (60+)
Beyond the detailed tables above, the schema includes supporting entities:
customercardloyalty_accountaccount_tiertier_ruleaccount_pooltransactiontransaction_rawingestion_batchledger_entrypoint_balancepoint_lotexpiry_scheduleaccrual_rulerule_versionearn_multiplierexclusion_setcap_definitioncampaigncampaign_versionmilestonecampaign_enrolmentmilestone_progresssegmentsegment_memberreward_cataloguecatalogue_categorypartnerredemptionredemption_itemauto_redeem_rulepoints_transferpartner_programreferralgamification_grantclawbackvouchervoucher_vaultfulfilment_requestfulfilment_statusmerchantmerchant_offermerchant_txn_mapsettlementsettlement_linefulfilment_partnerfp_invoicenotification_templatenotification_logconsentchannel_configapp_userrolepermissionrole_permissionapproval_requestaudit_logreconciliationrecon_exceptionbudgetbudget_txnconfig_parammcc_mastercurrencyholiday_calendarreport_definitionreport_runsupport_casedisputeapi_clientapi_access_logintegration_lograte_limitoutbox_eventjob_schedulecr.bank_eventcr.trigger_rulecr.scratch_cardcr.milestone_defcr.milestone_progress
Indexing, Partitioning & Performance
Indexes are chosen against the actual hot read paths of the accrual, campaign, redemption, reconciliation and MIS engines. The core set ships in migration 001–007; the performance set for the read-heavy reporting and reconciliation paths ships in migration 008_perf_indexes.sql. At the ~2M txn/day target these are created with CREATE INDEX CONCURRENTLY and the large fact tables (transaction, ledger_entry) are range-partitioned by month.
| Table | Index / strategy | Serves |
|---|---|---|
| ledger_entry | PK(entry_id); idx(account_id, posted_at); UQ(idempotency_key); idx(entry_type, posted_at); idx(source_type, source_ref); idx(reversal_of) partial; idx(funding_merchant_id) partial; range-partition by month on posted_at. | Balance & statement reads; MIS aggregates by entry-type/date; reconciliation joins; reversal & merchant-funded roll-ups. |
| transaction | UQ(external_txn_ref); idx(account_id, txn_datetime); idx(mcc); idx(txn_datetime); idx(account_id, txn_datetime) partial WHERE purchase&posted; partition by month. | Account history; campaign MCC predicate; global batch/statement scans; tier-qualification spend sums. |
| redemption | UQ(idempotency_key); idx(account_id); idx(status, created_at); idx(catalogue_sku). | Customer redemption history; partner consumption reports; category/partner attribution. |
| campaign_enrolment | UQ(campaign_id, account_id). | Per-account campaign evaluation (hot path); campaign performance roll-up. |
| milestone | idx(campaign_id, sequence). | Milestone ladder lookup in evaluation order. |
| voucher | idx(redemption_id). | Voucher-vault lookup by redemption. |
| merchant_txn_map / settlement_line | idx(merchant_id, txn_datetime); UQ(offer_id, ledger_entry_id); idx(settlement_id). | Idempotent funded-txn attribution; settlement line roll-up. |
| audit_log | idx(entity_type, entity_id); idx(occurred_at DESC); append-only, partitioned by month. | Entity audit lookups; chronological audit-trail report. |
| notification_log | idx(account_id) partial. | Customer-360 communication history. |
Bold entries are added in migration 008 for the reporting/reconciliation read paths. The MIS reporting service filters every standard report by user (account / customer / card ref), card segment (variant / tier), campaign and date — each of those predicates resolves through one of the indexes above.
Data Retention & Privacy
| Data class | Retention | Treatment |
|---|---|---|
| Ledger & financial | As per bank policy (e.g. 8–10 yrs) | Immutable; archived after active window. |
| Transactions | Configurable (e.g. 24–36 months online) | Partition archival to warehouse. |
| PII / identifiers | Tokenised throughout | No raw PAN/PII stored; reversible tokens held by bank vault only. |
| Audit log | ≥ programme lifetime | Immutable, exportable. |
| API & integration logs | Configurable (e.g. 12–18 months online) | Partition archival to SIEM/warehouse; hashes only, no payloads. |
| Report artefacts | Per report_definition.retention_days | Object store; integrity hash retained. |
| Notification content | Configurable (e.g. 12 months) | Purge per retention policy. |
Detailed encryption, masking & residency controls are in CR-SEC-009.