LOY_PROG_POINT_BLOCK
The table is used to store the Partner Point Blocks data for Loyalty Programs.
Details
-
Schema: FUSION
-
Object owner: LOY
-
Object type: TABLE
-
Tablespace: FUSION_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
LOY_PROG_POINT_BLOCK_PK |
PROG_POINT_BLOCK_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
PROG_POINT_BLOCK_ID | NUMBER | 18 | Yes | Who Column: Primary Key. | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of 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. | ||
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. | |
POINT_BLOCK_NUMBER | VARCHAR2 | 30 | Yes | Point Block Number | |
BLOCK_TYPE_CODE | VARCHAR2 | 30 | Block type code | ||
NAME | VARCHAR2 | 100 | Yes | Name of the Point Block | |
PROGRAM_ID | NUMBER | 18 | Yes | Program Identifier | |
PARTNER_ID | NUMBER | 18 | Partner Identifier | ||
POINT_TYPE_ID | NUMBER | 18 | Point Type Identifier | ||
TOTAL_POINTS | NUMBER | Yes | Total points in the point block represented by this record. | ||
START_DATE | TIMESTAMP | Indicates the date at the beginning of the date range within which the row is effective. | |||
END_DATE | TIMESTAMP | Indicates the date at the end of the date range within which the row is effective. | |||
STATUS_CODE | VARCHAR2 | 30 | Indicates the current status of the Point Block the records represents. | ||
POINTS_CONSUMED | NUMBER | Points consumed from the Point Block that this record represents. | |||
RESERVED_POINTS | NUMBER | Yes | Points Reserved from the Point Block that this record represents. | ||
RETURNED_POINTS | NUMBER | Yes | Points Returned from the Point Block that this record represents. | ||
UNIT_PRICE | NUMBER | Unit price of the Points in the Point Block this record represents. | |||
SALE_DATE | TIMESTAMP | Date of Sale of the Point Block. | |||
SALE_PRICE | NUMBER | Sale price of the Points in the Point Block this record represents. | |||
SALE_CURCY_CODE | VARCHAR2 | 15 | The currency code of the sale price value. | ||
PROMO_ID | NUMBER | 18 | Promotion identifier | ||
PARTNER_FLAG | VARCHAR2 | 1 | Yes | Partner flag indicates if the Point Block is for the Partner. If checked the Partner is mandatory to be specified for the Point Block. | |
DESC_TEXT | VARCHAR2 | 250 | Descriptive text | ||
PAR_POINT_BLOCK_ID | NUMBER | 18 | Parent point block Identifier | ||
SUBMIT_DATE | TIMESTAMP | Date on which this Point block record was submitted for Approval. | |||
SUBMIT_TO_EMP | VARCHAR2 | 15 | Employee Login identifier to whom this Point Block record was submitted for Approval. | ||
APPR_DATE | TIMESTAMP | Date on which this Point block record was Approved. | |||
APPR_BY_EMP | VARCHAR2 | 15 | Employee Login identifier who approved this Point Block record. | ||
CURCY_CODE | VARCHAR2 | 15 | The currency Code of the Unit Price Value. | ||
CURCY_EXCH_DATE | TIMESTAMP | The currency Exchange Date when the Unit Price was set. | |||
CURCY_EXCH_RATE | NUMBER | The currency Exchange Rate of the Unit Price Currency Code as on the Currency Exchange Date. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
LOY_PROG_POINT_BLOCK | loy_program | PROGRAM_ID |
LOY_PROG_POINT_BLOCK | hz_parties | PARTNER_ID |
LOY_PROG_POINT_BLOCK | loy_attrdefn_b | POINT_TYPE_ID |
LOY_PROG_POINT_BLOCK | loy_promo | PROMO_ID |
LOY_PROG_POINT_BLOCK | loy_prog_point_block | PAR_POINT_BLOCK_ID |
loy_prog_point_block | loy_prog_point_block | PAR_POINT_BLOCK_ID |
loy_acrl_itm | loy_prog_point_block | POINT_BLK_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
LOY_PROG_POINT_BLOCK_F1 | Non Unique | Default | PROGRAM_ID |
LOY_PROG_POINT_BLOCK_F2 | Non Unique | Default | PARTNER_ID |
LOY_PROG_POINT_BLOCK_F3 | Non Unique | Default | POINT_TYPE_ID |
LOY_PROG_POINT_BLOCK_F4 | Non Unique | Default | PROMO_ID |
LOY_PROG_POINT_BLOCK_F5 | Non Unique | Default | PAR_POINT_BLOCK_ID |
LOY_PROG_POINT_BLOCK_U1 | Unique | Default | PROG_POINT_BLOCK_ID |
LOY_PROG_POINT_BLOCK_U2 | Unique | Default | POINT_BLOCK_NUMBER |