LOY_MEM_STATUS_INT
Interface table for loyalty member status history
Details
-
Schema: FUSION
-
Object owner: LOY
-
Object type: TABLE
-
Tablespace: INTERFACE
Primary Key
Name | Columns |
---|---|
LOY_MEM_STATUS_INT_PK |
BATCH_ID, INTERFACE_ROW_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
BATCH_ID | NUMBER | 18 | Yes | Unique Identifier for a Batch | |
INTERFACE_ROW_ID | NUMBER | 18 | Yes | Unique identifier of the interface record. Internal use only. | |
IMPORT_STATUS_CODE | VARCHAR2 | 1 | Status for the data in the interface table | ||
ACTION_CODE | VARCHAR2 | 30 | Indicates action entered by user | ||
INTERNAL_ACTION_CODE | VARCHAR2 | 30 | This column is created for internal use and will be populated and used by bulk import logic. | ||
FILE_RECORD_NUM | NUMBER | 18 | The column is used to store the record number indicator in the csv file. Required by File Import Tool. | ||
INTERNAL_MEMSTATUS_OVN | NUMBER | 9 | Object Version Number copied from corresponding Member record. This is used for UPDATE cases to see if record is updated by another user during processing of bulk import and throw error appropriately. | ||
FILE_NAME_SYSTASK_ID | NUMBER | 18 | The column is used to store SYSTASK_ID for the import activity execution. Required by File Import Tool | ||
LOY_MEM_STATUS_ID | NUMBER | 18 | Reference Column to the LOY_MEM_STATUS (Primary Key to LOY_MEM_STATUS table) | ||
MEMBER_ID | NUMBER | 18 | Refers individual member id. | ||
MEM_NUM | VARCHAR2 | 30 | Member Number as an alternate key attribute for MEMBER_ID. | ||
PROGRAM_ID | NUMBER | 18 | Refers Program id. | ||
PROGRAM_NAME | VARCHAR2 | 50 | Alternate key for PROGRAM_ID. Program Name, Tier Class Name and Tier Name are composite alternate key attributes for TIER_ID as well. | ||
START_DATE | DATE | 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. | ||
REFERRED_BY_MEM_NUM | VARCHAR2 | 30 | Member Number (Referred by member number) as an alternate key attribute for REFERRED_BY_ID. It is not same as the alternate key for MEMBER_ID. | ||
PR_CON_ID | NUMBER | 18 | Primary Contact Identification. | ||
PR_CON_PARTY_NUM | VARCHAR2 | 20 | alternate key for PR_CON_ID | ||
TIER_ID | NUMBER | 18 | Member Tier Id. | ||
TIER_CLS_NAME | VARCHAR2 | 30 | Program Name, Tier Class Name and Tier Name are composite alternate key attributes for TIER_ID. | ||
TIER_NAME | VARCHAR2 | 30 | Program Name, Tier Class Name and Tier Name are composite alternate key attributes for TIER_ID. | ||
FROM_STATUS_CODE | VARCHAR2 | 30 | Status code before change. | ||
TO_STATUS_CODE | VARCHAR2 | 30 | Status code after change | ||
CREATED_BY | VARCHAR2 | 64 | Who column: indicates the user who created the row. | ||
CREATION_DATE | TIMESTAMP | Who column: indicates the date and time of the creation of the row. | |||
LAST_UPDATED_BY | VARCHAR2 | 64 | Who column: indicates the user who last updated the row. | ||
LAST_UPDATE_DATE | TIMESTAMP | Who column: indicates the date and time of the last update of the row. | |||
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated 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. |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
LOY_MEM_STATUS_INT_U1 | Unique | Default | BATCH_ID, INTERFACE_ROW_ID |