MOO_OPTY_STG_SNAPSHOTS

This is used to track the sales stage the opty has gone through in history. If a sales stage is visited multiple times, an active flag is used to indicate the most recent time when that stage had been visited (with ACTIVE_FLAG = 'Y').

Details

  • Schema: FUSION

  • Object owner: MOO

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

MOO_OPTY_STG_SNAPSHOTS_PK

OPTY_STG_SNAPSHOT_ID

Columns

Name Datatype Length Precision Not-null Comments
OPTY_STG_SNAPSHOT_ID NUMBER 18 Yes Unique id for Opty Stage snapshots.
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).
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_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.
OPTY_ID NUMBER 18 Yes Opportunity Id
STG_ID NUMBER 18 Yes Id of the opty sales stage
STG_ENTER_DATE TIMESTAMP Timestamp when the opty entered this sales stage
STG_EXIT_DATE TIMESTAMP Timestamp when the opty exited this sales stage
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).
ACTIVE_FLAG VARCHAR2 1 To track the last sales stage change (in the scenario if that stage has been revisited multiple times). 'Y' if this is the entry corresponding to the most recent history with that sales stage. NULL otherwise.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.

Foreign Keys

Table Foreign Table Foreign Key Column
MOO_OPTY_STG_SNAPSHOTS moo_opty OPTY_ID
MOO_OPTY_STG_SNAPSHOTS moo_stg_b STG_ID

Indexes

Index Uniqueness Tablespace Columns Status
MOO_OPTY_STG_SNAPSHOTS_F1 Non Unique Default OPTY_ID Obsolete
MOO_OPTY_STG_SNAPSHOTS_N1 Non Unique Default OPTY_ID, STG_ID
MOO_OPTY_STG_SNAPSHOTS_N2 Non Unique Default LAST_UPDATE_DATE
MOO_OPTY_STG_SNAPSHOTS_U1 Unique Default OPTY_STG_SNAPSHOT_ID