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_

LAST_UPDATE_DATE, LAST_UPDATED_BY, 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 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 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 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 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 Opportunity Id
STG_ID NUMBER 18 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.
AUDIT_ACTION_TYPE_ VARCHAR2 10 Action Type - have values like INSERT, UPDATE and DELETE.
AUDIT_CHANGE_BIT_MAP_ VARCHAR2 1000 Used to store a bit map of 1s and 0s for each column in the table.
AUDIT_IMPERSONATOR_ VARCHAR2 64 Original Impersonator User.

Indexes

Index Uniqueness Tablespace Columns
MOO_OPTY_STG_SNAPSHOTSN1_ Non Unique Default OPTY_STG_SNAPSHOT_ID
MOO_OPTY_STG_SNAPSHOTS_U1_ Unique Default LAST_UPDATE_DATE, LAST_UPDATED_BY, OPTY_STG_SNAPSHOT_ID