ZSF_FCST_PRODUCT
This table stores a snapshot of the product hierarchy . This table is used to store both product and product groups
Details
-
Schema: FUSION
-
Object owner: zsf
-
Object type: TABLE
-
Tablespace: Default
Primary Key
Name | Columns |
---|---|
ZSF_FCST_PRODUCT_PK |
FCST_PRODUCT_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
FCST_PRODUCT_ID | NUMBER | 18 | Yes | The primar key for the forecast product hierarchy snapshot table | |
PARENT_FCST_PRODUCT_ID | NUMBER | 18 | The parent for the product node. This is a self reference to fcst_product_id | ||
ENTITY_TYPE | VARCHAR2 | 360 | Represents if the entity of the current row is a product or product group | ||
UNSPECIFIED_FLAG | VARCHAR2 | 1 | Represents if the current row is a pseudo row for the product parent. | ||
SNAPSHOT_VERSION_ID | NUMBER | 18 | Refers to the ZSF_FCST_SNAPSHOT.SNAPSHOT_VERSION_ID | ||
PROD_HIERARCHY_LEVEL | NUMBER | Level of the product in the current product hierarchy | |||
INVENTORY_ITEM_ID | NUMBER | 18 | This is a FK to the QSC_PROD_GROUP_ITEMS table , representing an item | ||
INV_ORG_ID | NUMBER | 18 | This is a FK to the QSC_PROD_GROUP_ITEMS table , representing an item | ||
PRODUCT_GROUP_ID | NUMBER | 18 | This is a FK to QSC_PROD_GROUPS_B. PROD_GROUP_ID | ||
START_DATE | DATE | Start date of the product in the fcst product snapshot table. | |||
END_DATE | DATE | End date of the product in the forecast product snapshot table. | |||
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created 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. | ||
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. | ||
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). | |
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. | |
USER_LAST_UPDATE_DATE | TIMESTAMP | Disconnected Mobile: indicates the date and time of the last update of the row. This value is different from LAST_UPDATE_DATE if the update originally happened in a different database (i.e. a different mobile database or the server). |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
ZSF_FCST_PRODUCT | qsc_prod_groups_b | FCST_PRODUCT_ID |
zsf_fcst_period_adjustment | zsf_fcst_product | FCST_PRODUCT_ID |
zsf_fcst_item_detail | zsf_fcst_product | FCST_PRODUCT_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
ZSF_FCST_PRODUCT_N1 | Non Unique | FUSION_TS_TX_IDX | SNAPSHOT_VERSION_ID, PARENT_FCST_PRODUCT_ID |
ZSF_FCST_PRODUCT_N2 | Non Unique | Default | PRODUCT_GROUP_ID, SNAPSHOT_VERSION_ID |
ZSF_FCST_PRODUCT_N3 | Non Unique | Default | PARENT_FCST_PRODUCT_ID |
ZSF_FCST_PRODUCT_N4 | Non Unique | Default | PROD_HIERARCHY_LEVEL, UNSPECIFIED_FLAG |
ZSF_FCST_PRODUCT_N5 | Non Unique | FUSION_TS_TX_IDX | SNAPSHOT_VERSION_ID, INVENTORY_ITEM_ID, INV_ORG_ID |
ZSF_FCST_PRODUCT_N6 | Non Unique | Default | SNAPSHOT_VERSION_ID, UNSPECIFIED_FLAG, PARENT_FCST_PRODUCT_ID, FCST_PRODUCT_ID |
ZSF_FCST_PRODUCT_PK | Unique | Default | FCST_PRODUCT_ID |