ZCA_ACCOUNT_ACCESS
Denorm table for Account Resources and Territories. This Denormed table is used to optimize the security predicates.
Details
-
Schema: FUSION
-
Object owner: ZCA
-
Object type: TABLE
-
Tablespace: FUSION_TS_TX_DATA
Primary Key
Name | Columns |
---|---|
ZCA_ACCOUNT_ACCESS_PK |
ACCOUNT_ACCESS_ID, TYPE_CODE |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
ACCOUNT_ACCESS_ID | NUMBER | 18 | Yes | Primary Key of the Table | |
SALES_ACCOUNT_ID | NUMBER | 18 | Yes | Sales Account Id to which the row belongs | |
GROUP_ID | NUMBER | 18 | Yes | Contains either Resources Party Id or Territory Id based on Type column value | |
TYPE_CODE | VARCHAR2 | 30 | Yes | Contains either RESOURCE or TERRITORY value | |
ACCT_TERR_ID | NUMBER | 18 | Account Territory Id which is primary key column to ZCA_S_ACCT_TERRITORIES table | ||
ACCT_RESOURCE_ID | NUMBER | 18 | Account Resource Id which is primary key column to ZCA_S_ACCT_RESOURCES table | ||
SALES_ACCOUNT_TYPE | VARCHAR2 | 30 | Type of the sales Account. Possible values are: ZCA_PROSPECT,ZCA_CONTACT,ZCA_CUSTOMER | ||
PARTY_ID | NUMBER | 18 | Yes | Party Id of the Sales Account | |
ACCESS_LEVEL_CODE | VARCHAR2 | 30 | Access Level Code of Resource on Account, for records with type='RESOURCE'. 'null', for records with type='TERRITORY' | ||
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 |
---|---|---|---|
ZCA_ACCOUNT_ACCESS_N1 | Non Unique | FUSION_TS_TX_DATA | SALES_ACCOUNT_ID, GROUP_ID, TYPE_CODE |
ZCA_ACCOUNT_ACCESS_N2 | Non Unique | FUSION_TS_TX_DATA | GROUP_ID, SALES_ACCOUNT_ID, TYPE_CODE |
ZCA_ACCOUNT_ACCESS_N3 | Non Unique | FUSION_TS_TX_DATA | ACCT_RESOURCE_ID |
ZCA_ACCOUNT_ACCESS_N4 | Non Unique | FUSION_TS_TX_DATA | ACCT_TERR_ID |
ZCA_ACCOUNT_ACCESS_N5 | Non Unique | Default | PARTY_ID, GROUP_ID, TYPE_CODE |
ZCA_ACCOUNT_ACCESS_N6 | Non Unique | Default | GROUP_ID, PARTY_ID, TYPE_CODE |
ZCA_ACCOUNT_ACCESS_U1 | Unique | FUSION_TS_TX_DATA | ACCOUNT_ACCESS_ID, TYPE_CODE |