LOY_ACRL_ITM

Loyalty Accrual Items and related information.

Details

  • Schema: FUSION

  • Object owner: LOY

  • Object type: TABLE

  • Tablespace: FUSION_TS_TX_DATA

Primary Key

Name Columns

LOY_ACRL_ITM_PK

LOY_ACRL_ITM_ID

Columns

Name Datatype Length Precision Not-null Comments
LOY_ACRL_ITM_ID NUMBER 18 Yes Who column.
ACTION_NOTE VARCHAR2 1000 It is a marker. Action Notes captured from Action Definition are stamped here. E.g. Member promoted from Gold to Platinum through xyz promotion.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
CONFLICT_ID NUMBER 18 Yes Disconnected Mobile: this value is used to guarantee the uniqueness of the row when duplicates are created in different databases (i.e. mobile databases or the server).
ITEM_NUM VARCHAR2 30 Yes Item Number.
ACCRUALED_VALUE NUMBER Accrualed value.
EXPIRED_VALUE NUMBER To store the expired value, if any, for this accrual item. This column will be stamped by the "Expiry" batch process.
ATTRIB_DEFN_ID NUMBER 18 Yes Header of this Attribute Item.
COMMENTS VARCHAR2 250 Comments.
EXPIRATION_DT TIMESTAMP Expiraton Date for the point
MEMBER_ID NUMBER 18 Yes Member Id.
ORDER_NUM VARCHAR2 30 Order Number from POS system. This has the same reference stored in S_LOY_TXN.
POINT_BLK_ID NUMBER 18 Point Block from which this Point Item is being debited.
PT_BLK_DEBIT_FLAG VARCHAR2 1 Yes This Point Block Debit Flag column indicates if this Accrual Item is debited to Point Block of the Partner in case of Accrual items created by Loyalty Transactions.
PROCESS_DT TIMESTAMP Date of transaction
PROMO_BUCKET_ID NUMBER 18 Promotion Bucket due to which this Point Item was rewarded.
PROMO_ID NUMBER 18 Promotion for which this item was created.
PRTNR_PT_DEBT_QTY NUMBER Number of points debited from the partner for this member points accrual
PT_SUB_TYPE_ID NUMBER 18 Point Sub Type
QUALIFYING_FLAG VARCHAR2 1 Yes Whether Accrual is of Qualifying Type
REPAID_FLAG VARCHAR2 1 Yes Repaid or not.
RET_EFF_DT TIMESTAMP Date from which the Accrual Item will be effective
STATUS_CODE VARCHAR2 30 Expired in case of points
TXN_ID NUMBER 18 Transaction for which this item was given
TYPE_CODE VARCHAR2 30 Yes Accrual or Loan
USED_VALUE NUMBER Used value.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.

Foreign Keys

Table Foreign Table Foreign Key Column
LOY_ACRL_ITM loy_prog_point_block POINT_BLK_ID
LOY_ACRL_ITM loy_attrdefn_b ATTRIB_DEFN_ID
LOY_ACRL_ITM loy_member MEMBER_ID
LOY_ACRL_ITM loy_bucket PROMO_BUCKET_ID
LOY_ACRL_ITM loy_promo PROMO_ID
LOY_ACRL_ITM loy_ptsubtype PT_SUB_TYPE_ID
LOY_ACRL_ITM loy_txn TXN_ID
loy_rdm_itm loy_acrl_itm ACCRUAL_ITEM_ID

Indexes

Index Uniqueness Tablespace Columns
LOY_ACRL_ITM_FK2 Non Unique FUSION_TS_TX_DATA ATTRIB_DEFN_ID
LOY_ACRL_ITM_FK3 Non Unique FUSION_TS_TX_DATA MEMBER_ID
LOY_ACRL_ITM_FK4 Non Unique FUSION_TS_TX_DATA PROMO_BUCKET_ID
LOY_ACRL_ITM_FK5 Non Unique FUSION_TS_TX_DATA PROMO_ID
LOY_ACRL_ITM_FK6 Non Unique FUSION_TS_TX_DATA PT_SUB_TYPE_ID
LOY_ACRL_ITM_FK7 Non Unique FUSION_TS_TX_DATA TXN_ID
LOY_ACRL_ITM_N1 Non Unique Default POINT_BLK_ID, PT_BLK_DEBIT_FLAG, PRTNR_PT_DEBT_QTY
LOY_ACRL_ITM_N2 Non Unique Default PRTNR_PT_DEBT_QTY
LOY_ACRL_ITM_U1 Unique FUSION_TS_TX_DATA LOY_ACRL_ITM_ID
LOY_ACRL_ITM_U2 Unique Default ITEM_NUM
LOY_ACRL_ITM_U3 Unique Default LAST_UPDATE_DATE, LOY_ACRL_ITM_ID