MOT_IMP_TERR_QUOTA_PERIODS

This is a staging table used for importing territory quota periods

Details

  • Schema: FUSION

  • Object owner: MOT

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

MOT_IMP_TERR_QUOTA_PERIODS_PK

BATCH_ID, INTERFACE_ROW_ID

Columns

Name Datatype Length Precision Not-null Comments
INTERFACE_ROW_ID NUMBER 18 Yes An internally generated identifier for interface table. It is part of the primary key.
BATCH_ID NUMBER 18 Yes Externally generated id to mark actual set of imported records
IMPORT_STATUS_CODE VARCHAR2 30 Indicates the import status of the record.
ACTION_CODE VARCHAR2 30 Action code will be used to determine what operation should be done: insert,update,delete
INTERNAL_ACTION_CODE VARCHAR2 30 This is to handle null action code
FILE_RECORD_NUM NUMBER 10 File record number
FILE_NAME_SYSTASK_ID NUMBER 18 Indicates import sys task id for multi CSV upload
INTERNAL_OVN NUMBER 9 This is used for optimistic locking
REQUEST_ID NUMBER 18 Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row.
QUOTA_PLAN_NAME VARCHAR2 100 Name of the quota plan for which the territory quota is updated. Part of User Key
TERRITORY_NUMBER VARCHAR2 30 Unique identification number for this territory. Part of User Key
PERIOD_NAME VARCHAR2 15 Period name for which the quota is defined. Part of User Key
TERRITORY_QUOTA_PERIOD_ID NUMBER 18 Identifier column for territory quota period
TERRITORY_QUOTA_ID NUMBER 18 Identifier of territory quota
QUOTA_PLAN_ID NUMBER 18 Identifier of Quota Plan
TERRITORY_VERSION_ID NUMBER 18 Identifier of territory
TERRITORY_PERIOD_QUOTA NUMBER Quota allocated to a territory
PARENT_TERITORY_NAME VARCHAR2 60 Name of the parent territory
TERRITORY_NAME VARCHAR2 60 Name of the territory
START_DATE DATE Period start date
END_DATE DATE Period end date
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.
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.

Indexes

Index Uniqueness Tablespace Columns
MOT_IMP_TERR_QUOTA_PERIODS_U1 Unique Default BATCH_ID, INTERFACE_ROW_ID
MOT_IMP_TERR_QUOTA_PERIOD_N1 Non Unique Default BATCH_ID, QUOTA_PLAN_NAME, TERRITORY_NUMBER, PERIOD_NAME