CR-DAT-005 · DATA MODEL & DATABASE STRUCTURE

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.

ConfidentialVersion: 1.1Engine: PostgreSQL (logical)Date: 19 Jul 2026

Data Architecture Overview

The model separates four data domains, each owned by its services and aligned to the container architecture:

Operational
Customer, Card, Account, Transaction
Ledger
Ledger Entry, Point Balance
Configuration
Rules, Campaigns, Catalogue, Templates, RBAC
Analytics & Audit
Reports, Reconciliation, Audit Log, API & Integration Logs
Naming: 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

customer card loyalty_account transaction ledger_entry point_balance accrual_rule campaign campaign_enrolment+ milestone_progress redemption voucher reward_catalogue merchant merchant_offer settlement audit_log approval_request
Figure 1 — Core ER model (key entities). A customer holds cards mapped to a loyalty_account; transactions drive ledger_entry rows; redemptions consume balance and issue vouchers; merchants fund offers settled via settlement.

Core Table — loyalty_account

ColumnTypeKeyDescription
account_idBIGINTPKSurrogate identifier.
customer_refVARCHAR(64)Tokenised the Bank customer reference (held inline; no separate customer table in the current build).
card_refVARCHAR(64)UQTokenised card reference (unique); held inline.
binVARCHAR(12)BIN of the card (migration 010); resolves the card to its variant via card_product.
card_product_idBIGINTFK→ card_product (BIN → variant mapping; migration 010).
card_variantVARCHAR(24)Classic/Gold/Platinum/Signature/Corporate — the master the accrual rule is scoped to.
current_tierVARCHAR(16)Denormalised active tier; authoritative history in account_tier.
statusVARCHAR(16)active / dormant / blocked / closed.
enrolment_dateDATEProgramme enrolment date.
anniversary_mdVARCHAR(5)MM-DD anniversary for lifecycle rewards.
created_at / updated_atTIMESTAMPTZAudit timestamps.
Current build vs. target normalisation. The shipped migrations hold customer/card identity inline on 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)

ColumnTypeKeyDescription
entry_idBIGINTPKImmutable entry id.
account_idBIGINTFK→ loyalty_account.
entry_typeVARCHAR(16)ACCRUAL / REDEMPTION / REVERSAL / EXPIRY / ADJUSTMENT / CLAWBACK / TRANSFER / MIGRATION.
directionCHAR(1)C (credit) / D (debit).
pointsBIGINTPoint quantity (always positive; direction signs it).
source_typeVARCHAR(24)transaction / campaign / manual / fulfilment / tier / referral / transfer / clawback / migration / gamification.
source_refVARCHAR(64)FK reference to txn / campaign / redemption.
rule_idBIGINTFKAccrual/campaign rule applied (nullable).
idempotency_keyVARCHAR(120)UQGuarantees exactly-once posting.
reversal_ofBIGINTFKOriginal entry for reversals.
reason_codeVARCHAR(24)For adjustments/reversals.
posted_atTIMESTAMPTZPosting time.
created_byVARCHAR(48)Service or admin actor.
funding_sourceVARCHAR(12)bank / merchant — who funds this accrual. Default bank; flipped to merchant by the attribution run.
funding_merchant_idBIGINTFK→ merchant that funds the accrual (nullable; set when funding_source='merchant').
funded_minorBIGINTRupee value (paise) of the merchant-funded share of this entry. 0 for bank-funded.
Balance derivation: 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-source split: the three 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.

ColumnTypeKeyDescription
lot_idBIGINTPKSurrogate.
account_idBIGINTFK→ loyalty_account.
ledger_entry_idBIGINTFK · UQThe ACCRUAL credit that created the lot (unique → idempotent reconcile).
rule_idBIGINTAccrual rule that drove the expiry window (nullable).
points_earnedBIGINTOriginal lot size.
points_remainingBIGINTUnconsumed points (FIFO-by-expiry drawdown).
earned_atTIMESTAMPTZFrom the credit's posted_at.
expires_atDATEearned_at + rule.points_expiry_days (default 730).
statusVARCHAR(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

ColumnTypeKeyDescription
txn_idBIGINTPKInternal id.
external_txn_refVARCHAR(64)UQSource system reference (dedupe key).
account_idBIGINTFK→ loyalty_account.
amount_minorBIGINTTransaction amount in paise.
currencyCHAR(3)ISO 4217 (INR default).
mccVARCHAR(4)Merchant category code.
merchant_idVARCHAR(40)FKMerchant reference (nullable).
channelVARCHAR(16)POS / ECOM / ATM / INTL.
txn_typeVARCHAR(24)purchase / refund / fee / emi / cash_advance.
txn_statusVARCHAR(16)posted / reversed.
txn_datetimeTIMESTAMPTZTransaction time.
accrual_statusVARCHAR(16)pending / accrued / excluded / reversed.

Configuration Tables

TablePurposeNotable columns
accrual_ruleEarn rulesvariant, mcc_set, merchant_set, channel, earn_rate, multiplier, caps, exclusions, valid_from/to, version, status.
campaignCampaignstype, segment_id, conditions(JSONB), reward_def(JSONB), budget, start/end, enrolment_mode, cap, version, status.
milestoneMilestone ladderscampaign_id, threshold, reward_def, sequence.
campaign_enrolmentPer-customer statecampaign_id, account_id, progress, unlocked_at, reward_status.
segmentAudience definitionscriteria(JSONB), type(static/dynamic), size.
reward_catalogueCatalogue itemssku, category, partner_id, point_price, cash_value_minor, stock, eligibility(JSONB), tnc, expiry, funding_type.
notification_templateMessage templateschannel, locale, subject, body, variables(JSONB), version, status.
config_paramSystem parameterskey, value, scope, data_type — see CR-CFG-008.

Redemption, Merchant & Settlement Tables

TablePurposeNotable columns
redemptionBurn transactionsaccount_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_requestPartner fulfilment callsredemption_id, partner_id, request_payload(JSONB), response_payload(JSONB), request_signature, response_signature, signature_alg, signature_verified, status, attempts.
voucherIssued vouchersredemption_id, code(encrypted), partner, value, issued_at, expiry, status(active/used/expired).
fp_mid / fp_tidOn redemptionFulfilment-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).

ColumnTypeKeyDescription
merchant — merchant master
merchant_idBIGINTPKSurrogate id.
codeVARCHAR(40)UQBusiness code, e.g. MYNTRA, MER-DINE-01.
name / category / mccTEXT / VARCHARDisplay name, category, primary MCC.
kyc_refVARCHAR(64)KYC reference for onboarding.
settlement_termsJSONBe.g. {"net_days":30}.
statusVARCHAR(16)active / inactive / suspended.
merchant_offer — funded offer definition
offer_idBIGINTPKSurrogate id.
merchant_idBIGINTFK→ merchant.
matchJSONBEligibility predicate: {"mcc_in":[…],"merchant_in":[…],"channel_in":[…]}.
funding_modelVARCHAR(24)per_point / pct_of_point_value / flat_per_txn / multiplier_split.
funding_rateNUMERIC(10,4)Paise/point | percent | paise/txn (per model; 0 for multiplier_split).
point_value_minorINTValue of 1 point in paise (default 25 = ₹0.25), used by pct/multiplier models.
applies_to_variantVARCHAR(24)[]BIN/variant scope — e.g. {PLATINUM,SIGNATURE}; NULL = all variants.
bank_multiplier / merchant_multiplierNUMERIC(6,2)For multiplier_split: e.g. 5 + 5 → 10X total; merchant funds its share of earned points.
budget_minor / consumed_minorBIGINTFunding cap and running consumption (attribution stops at budget).
period_start / period_endDATEOffer effective window.
statusVARCHAR(20)draft / active / paused / ended.
merchant_txn_map — attribution (accrual → offer), idempotent
map_idBIGINTPKSurrogate id.
offer_id / merchant_idBIGINTFK→ merchant_offer / merchant.
ledger_entry_idBIGINTFK→ the funded ACCRUAL entry. UNIQUE(offer_id, ledger_entry_id) guarantees idempotent attribution.
txn_ref / account_idVARCHAR / BIGINTSource txn reference & loyalty account.
funded_points / funded_minorBIGINTMerchant-funded points and paise for this entry.
txn_datetime / mapped_atTIMESTAMPTZTxn time (settlement period basis) & attribution time.
settlement — per-merchant monthly payable
settlement_idBIGINTPKSurrogate id.
merchant_idBIGINTFK→ merchant. UNIQUE(merchant_id, period).
periodVARCHAR(7)YYYY-MM.
txn_count / funded_points / amount_due_minorINT / BIGINTRolled-up totals from the attributed lines.
statusVARCHAR(16)draft / generated / settled.
generated_at / settled_atTIMESTAMPTZGeneration & mark-settled timestamps.
settlement_line — per-transaction detail of a settlement
line_idBIGINTPKSurrogate id.
settlement_idBIGINTFK→ settlement (ON DELETE CASCADE).
txn_ref / account_id / funded_points / funded_minor / txn_datetimemixedSnapshot of each attributed line at generation time.
Worked example (split multiplier): a Myntra 10X offer on an the Bank premium variant = 5X bank + 5X Myntra, scoped to 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).

ColumnTypeKeyDescription
fulfilment_partner — partner master
fp_idBIGINTPKSurrogate id.
code / nameVARCHAR / TEXTUQe.g. AMZ-FP Amazon Fulfilment.
typeVARCHAR(24)voucher / marketplace / dining / travel / d2c / hotdeals.
catalogue_partner_idBIGINTFK→ partner — links consumption via redeemed catalogue SKUs.
point_value_minorINTValue of 1 point in paise (default 25 = ₹0.25).
bank_discount_pctNUMERIC(5,2)Discount the partner gives the bank (drives net payable).
contract_ref / statusVARCHARContract reference; active / inactive.
fp_invoice — per-period consumption invoice
invoice_idBIGINTPKSurrogate id.
fp_idBIGINTFK→ fulfilment_partner. UNIQUE(fp_id, period).
periodVARCHAR(7)YYYY-MM.
consumed_points / distinct_users / txn_countBIGINT / INTConsumption volumes for the period.
point_value_minor / gross_minorINT / BIGINTUnit value and gross value (points × value).
discount_pct / net_payable_minorNUMERIC / BIGINTApplied discount and net amount payable to the bank.
status / generated_atVARCHAR / TIMESTAMPTZdraft / generated / invoiced / paid.
Worked example (consumption billing): Amazon consumes 500,000 points in a month at 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).
Signature-verified redemptions: every value-mutating redemption carries a cryptographically signed request (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).

TablePurposeNotable columns
tier_ruleTier ladder & qualificationtier_code, sequence, qualify_metric(spend_minor/points), qualify_threshold, window_type(rolling/anniversary), downgrade_threshold, grace_days, benefits(JSONB), version, status.
account_tierPer-account tier state & historyaccount_id, tier_code, qualified_at, expires_at, prior_tier, change_reason, evaluated_window.
account_poolFamily / supplementary poolingpool_id, primary_account_id, member_account_id, role(primary/member), share_pct, status.
points_transferMember & partner transfersfrom_account_id, to_account_id(nullable), partner_program_id(nullable), points_debited, ratio, fee_points, type(member/partner), status, external_ref, reversed_of.
partner_programAirline/hotel transfer partnersname, type(airline/hotel), conversion_ratio, min_points, max_points, api_endpoint, status.
referralReferral attribution & rewardreferrer_account_id, referee_ref, code, qualify_event, qualified_at, referrer_points, referee_points, reward_status, fraud_flag.
gamification_grantScratch card / spin rewardaccount_id, game_type, trigger_event, outcome(JSONB), points_awarded, ledger_entry_id, status.
auto_redeem_ruleCustomer auto-redeem prefsaccount_id, trigger(threshold/scheduled), threshold_points, schedule_cron, method, target_sku, status.
clawbackFraud/chargeback recoveryaccount_id, source_ref, reason_code, points_recovered, value_recovered_minor, residual_negative, status, ledger_entry_id.
disputePoints-dispute workflowaccount_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}).

TablePurposeNotable columns
cr.bank_eventIngested bank lifecycle eventsevent_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_ruleEvent→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_cardIssued 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_defMilestone definitionscode (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_progressPer-account milestone progressprogress_id (PK), account_id (FK), milestone_code (FK → milestone_def), window_start, progress_count, progress_amount_minor, status (in_progress/completed/rewarded), completed_at.
Provenance & idempotency. A scratch card records who issued it — a 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

TablePurposeNotable columns
app_userAdmin usersusername, idp_subject, role_id, status, last_login.
role / permission / role_permissionRBACrole name, permission key, module, action — see CR-CFG-008.
approval_requestMaker-checkerentity_type, entity_id, change(JSONB), maker, checker, status, decided_at, notes.
audit_logImmutable auditactor, action, entity_type, entity_id, before(JSONB), after(JSONB), ip, occurred_at — append-only, range-partitioned by month.
api_access_logAPI access (SIEM)client_id, actor, method, path, status_code, latency_ms, ip, trace_id, request_id, occurred_at — partitioned.
integration_logExternal integration callssystem, direction, operation, correlation_id, request_hash, response_hash, http_status, status, latency_ms, attempt, occurred_at — partitioned.
reconciliationRecon runsrun_date, scope, source_total, ledger_total, variance, status; exceptions in recon_exception.
budgetBudgetsscope(programme/campaign), allocated, consumed, threshold_pct, status.
report_definitionMIS report cataloguecode, name, category(liability/reconciliation/settlement/campaign_performance/redemption/fulfilment/expiry_reversal/budget/audit), query_def(JSONB), output_formats[], schedule_cron, status.
report_runReport executionsreport_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.

TableIndex / strategyServes
ledger_entryPK(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.
transactionUQ(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.
redemptionUQ(idempotency_key); idx(account_id); idx(status, created_at); idx(catalogue_sku).Customer redemption history; partner consumption reports; category/partner attribution.
campaign_enrolmentUQ(campaign_id, account_id).Per-account campaign evaluation (hot path); campaign performance roll-up.
milestoneidx(campaign_id, sequence).Milestone ladder lookup in evaluation order.
voucheridx(redemption_id).Voucher-vault lookup by redemption.
merchant_txn_map / settlement_lineidx(merchant_id, txn_datetime); UQ(offer_id, ledger_entry_id); idx(settlement_id).Idempotent funded-txn attribution; settlement line roll-up.
audit_logidx(entity_type, entity_id); idx(occurred_at DESC); append-only, partitioned by month.Entity audit lookups; chronological audit-trail report.
notification_logidx(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 classRetentionTreatment
Ledger & financialAs per bank policy (e.g. 8–10 yrs)Immutable; archived after active window.
TransactionsConfigurable (e.g. 24–36 months online)Partition archival to warehouse.
PII / identifiersTokenised throughoutNo raw PAN/PII stored; reversible tokens held by bank vault only.
Audit log≥ programme lifetimeImmutable, exportable.
API & integration logsConfigurable (e.g. 12–18 months online)Partition archival to SIEM/warehouse; hashes only, no payloads.
Report artefactsPer report_definition.retention_daysObject store; integrity hash retained.
Notification contentConfigurable (e.g. 12 months)Purge per retention policy.

Detailed encryption, masking & residency controls are in CR-SEC-009.