MOT_TERR_RULES_

This is the entity that organizes the territory boundaries ie. dimensions in the form of Rules. Using this territories can be either just simple territories defined by a single rule or complex ones with multiple rules. This entity along with Territory Rule Boundary Value stores the dimensions of the Territory in an expression form. Rules are evaluated as choices ie. not additively. eg. if Rule 1 has Geography and Product as dimensions and Rule 2 has only Geography and Industry as dimensions, both will be evaluated and the Territory will be chosen if either Rule is a match.

Details

  • Schema: FUSION

  • Object owner: MOT

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

MOT_TERR_RULES_PK_

LAST_UPDATE_DATE, LAST_UPDATED_BY, TERR_RULE_ID

Columns

Name Datatype Length Precision Not-null Comments
TERR_RULE_ID NUMBER 18 Yes Primary Key
TERRITORY_VERSION_ID NUMBER 18 Foreign key to MOT_TERRITORIES
RULE_NUMBER NUMBER 18 A unique number within a territory definition. Generated from a sequence.
RULE_TYPE_CODE VARCHAR2 30 Identifier for the type of rule, also known as coverage type.
RULE_OPERATOR_CODE VARCHAR2 30 Identifies whether the rule is inclusion or exclusion
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_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of 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.
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).
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
MOT_TERR_RULESN1_ Non Unique Default TERR_RULE_ID, LAST_UPDATE_DATE
MOT_TERR_RULESN2_ Non Unique Default TERRITORY_VERSION_ID
MOT_TERR_RULES_PK_ Unique Default LAST_UPDATE_DATE, LAST_UPDATED_BY, TERR_RULE_ID