LOY_MEM_STATUS

Loyalty member status history table for OTBI reporting.

Details

  • Schema: FUSION

  • Object owner: LOY

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

LOY_MEM_STATUS_PK

LOY_MEM_STATUS_ID

Columns

Name Datatype Length Precision Not-null Comments
LOY_MEM_STATUS_ID NUMBER 18 Yes Who Column: Primary Key.
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.
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.
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).
MEMBER_ID NUMBER 18 Yes Refers individual member id.
PROGRAM_ID NUMBER 18 Yes Refers Program id.
START_DATE DATE Yes When the status start taking effect.
END_DATE DATE End date of the status.
REFERRED_BY_ID NUMBER 18 The reference number of the Member who actually Referred.
PR_CON_ID NUMBER 18 Primary Contact Identification.
TIER_ID NUMBER 18 Yes Member Tier Id.
FROM_STATUS_CODE VARCHAR2 30 Status code before change.
TO_STATUS_CODE VARCHAR2 30 Yes Status code after change

Foreign Keys

Table Foreign Table Foreign Key Column
LOY_MEM_STATUS loy_member MEMBER_ID
LOY_MEM_STATUS loy_program PROGRAM_ID
LOY_MEM_STATUS loy_member REFERRED_BY_ID
LOY_MEM_STATUS loy_tier TIER_ID

Indexes

Index Uniqueness Tablespace Columns
LOY_MEM_STATUS_F2 Non Unique Default TIER_ID
LOY_MEM_STATUS_F3 Non Unique Default REFERRED_BY_ID
LOY_MEM_STATUS_N1 Non Unique Default PROGRAM_ID, START_DATE, END_DATE, TO_STATUS_CODE
LOY_MEM_STATUS_U1 Unique Default LOY_MEM_STATUS_ID
LOY_MEM_STATUS_U2 Unique Default MEMBER_ID, TO_STATUS_CODE, START_DATE, CONFLICT_ID
LOY_MEM_STATUS_U3 Unique Default LAST_UPDATE_DATE, LOY_MEM_STATUS_ID