MOT_QM_TERRITORY_QUOTAS
Stores all information relating to the quota of a particular territory for all quota plans.
Details
-
Schema: FUSION
-
Object owner: MOT
-
Object type: TABLE
-
Tablespace: FUSION_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
MOT_QM_TERRITORY_QUOTAS_PK |
TERRITORY_QUOTA_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
TERRITORY_QUOTA_ID | NUMBER | 18 | Yes | Primary Key | |
PROPOSAL_ID | NUMBER | 18 | Used for proposal integration. Stores the proposal id that affected the options record. | ||
SEASONALITY_APPLIED_FLAG | VARCHAR2 | 1 | Tentative. Whether seasonality has been applied for this territory. | ||
QUOTA_REPUBLISHED_FLAG | VARCHAR2 | 1 | Used for proposal integration. Indicates whether the territory has been published within a draft proposal. | ||
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. | |
TERRITORY_ID | NUMBER | 18 | Yes | TerritoryId from MOT_TERRITORIES | |
TERRITORY_VERSION_ID | NUMBER | 18 | Territory Verison Id from MOT_TERRITORIES | ||
QUOTA_PLAN_ID | NUMBER | 18 | Yes | FK: MOT_QM_QUOTA_PLANS | |
TERRITORY_QUOTA | NUMBER | Quota assigned to this territory | |||
PAD_ADJUSTMENT | NUMBER | The pad adjustment over and abive the territory quota for this territory | |||
PREDICTED_QUOTA | NUMBER | Quota predicted using the prediction formulae | |||
STATUS_CODE | VARCHAR2 | 30 | Status of this territory quota - PUBLISHED/NON-PUBLISHED/PENDING REVISION | ||
COMMITED_DATE | TIMESTAMP | Date on which the quota has been published | |||
DUE_DATE | DATE | The date by which the quota allocation process must be completed for this territory | |||
START_DATE | DATE | The start date of the quota period | |||
END_DATE | DATE | The start date of the quota period | |||
SPREAD_FORMULA_ID | NUMBER | 18 | FK : MOT_QM_SPREAD_FORMULA_B | ||
SPREAD_PERIOD | VARCHAR2 | 10 | The period for which the desired data must be retrieved from the essbase cube | ||
SPREAD_SOURCE_TYPE_CODE | VARCHAR2 | 30 | ADJUSTED_TERRITORY_QUOTA/VARIANCE/ADHOC_AMOUNT | ||
SPREAD_SCOPE_TYPE_CODE | VARCHAR2 | 30 | ALL_SUBTERRITORIES/SELECTED_SUBTERRITORIES | ||
ALLOCATION_COMMENTS | VARCHAR2 | 500 | Allocation coments for the quota | ||
EXCLUDE_FLAG | VARCHAR2 | 1 | Indicate whether the territory is part of the quota allocation process | ||
CURRENCY_CODE | VARCHAR2 | 3 | Currency code | ||
CURR_EXCHANGE_RATE | NUMBER | Currency exchange rate | |||
CRM_CORP_CURRENCY_CODE | VARCHAR2 | 15 | CRM corporate curreny code | ||
CRM_CURR_CONV_RATE_TYPE | VARCHAR2 | 30 | CRM currency conversion rate type | ||
REALIGNMENT_REASON | VARCHAR2 | 500 | Reason of realignment | ||
TERRITORY_REALIGNED_FLAG | VARCHAR2 | 1 | Indicated is this territory has been religned | ||
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_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. | ||
LAST_UPDATED_BY_PARTY_ID | NUMBER | 18 | Contains the party id of the user who last updated the row. | ||
REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row. | ||
JOB_DEFINITION_NAME | VARCHAR2 | 100 | Enterprise Service Scheduler: indicates the name of the job that created or last updated the row. | ||
JOB_DEFINITION_PACKAGE | VARCHAR2 | 900 | Enterprise Service Scheduler: indicates the package name of the job that created or last updated the row. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
MOT_QM_TERRITORY_QUOTAS | mot_qm_quota_plans_b | QUOTA_PLAN_ID |
MOT_QM_TERRITORY_QUOTAS | mot_qm_spread_formula_b | SPREAD_FORMULA_ID |
MOT_QM_TERRITORY_QUOTAS | mot_terr_proposals | PROPOSAL_ID |
MOT_QM_TERRITORY_QUOTAS | mot_territories | TERRITORY_VERSION_ID |
mot_qm_resource_quotas | mot_qm_territory_quotas | TERRITORY_QUOTA_ID |
mot_qm_terr_quota_periods | mot_qm_territory_quotas | TERRITORY_QUOTA_PERIOD_ID |
Indexes
Index | Uniqueness | Tablespace | Columns | Status |
---|---|---|---|---|
MOT_QM_TERRITORY_QUOTAS_FK2 | Non Unique | Default | SPREAD_FORMULA_ID | |
MOT_QM_TERRITORY_QUOTAS_FK3 | Non Unique | Default | TERRITORY_VERSION_ID | Obsolete |
MOT_QM_TERRITORY_QUOTAS_FK4 | Non Unique | Default | PROPOSAL_ID | |
MOT_QM_TERRITORY_QUOTAS_N1 | Non Unique | Default | LAST_UPDATE_DATE | |
MOT_QM_TERRITORY_QUOTAS_N2 | Non Unique | Default | TRUNC("CREATION_DATE") | |
MOT_QM_TERRITORY_QUOTAS_PK | Unique | FUSION_MODTEST | TERRITORY_QUOTA_ID | |
MOT_QM_TERRITORY_QUOTAS_U1 | Unique | Default | QUOTA_PLAN_ID, TERRITORY_ID | |
MOT_QM_TERRITORY_QUOTAS_U2 | Unique | Default | TERRITORY_QUOTA_ID, LAST_UPDATE_DATE | |
MOT_QM_TERRITORY_QUOTAS_U3 | Unique | Default | TERRITORY_VERSION_ID, QUOTA_PLAN_ID |