LOY_EVENT
The table is used to store the event definition for loyalty programs.
Details
-
Schema: FUSION
-
Object owner: LOY
-
Object type: TABLE
-
Tablespace: FUSION_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
LOY_EVENT_PK |
EVENT_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
EVENT_ID | NUMBER | 18 | Yes | Who column | |
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). | |
PROGRAM_ID | NUMBER | 18 | Yes | Program Identifier reference. | |
NAME | VARCHAR2 | 75 | Yes | Name of the event for the loyalty program. | |
MEM_ATTR_INT_NAME | VARCHAR2 | 75 | Name of the member attribute. | ||
ACTIVE_FLAG | VARCHAR2 | 1 | Yes | Indicates if the event is active. | |
OFFSET_DAYS_MINUS | NUMBER | The negative offset to event date in Days. | |||
OFFSET_DAYS_PLUS | NUMBER | The positive offset to event date in Days. | |||
IGNORE_YEAR_FLAG | VARCHAR2 | 1 | Yes | Indicates if the event year is to be ignored. | |
COOLING_OFF_PERIOD | NUMBER | The cooling off period (from the current date in the past) during which an event reward transaction for a specific event is found for a member, another event reward transaction for the same event would not be created. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
LOY_EVENT | loy_program | PROGRAM_ID |
loy_event_attr | loy_event | EVENT_ID |
loy_txn | loy_event | EVENT_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
LOY_EVENT_U1 | Unique | FUSION_TS_TX_DATA | EVENT_ID |
LOY_EVENT_U2 | Unique | Default | PROGRAM_ID, NAME, CONFLICT_ID |