HZ_CUST_ACCOUNT_ROLES
The HZ_CUST_ACCOUNT_ROLES table stores information about a role or function that a party performs in relation to a customer account. For example, this table captures the information that Jane Doe is a legal contact for Vision Corporation. The primary key for this table is CUST_ACCOUNT_ROLE_ID
Details
-
Schema: FUSION
-
Object owner: HZ
-
Object type: TABLE
-
Tablespace: APPS_TS_TX_DATA
Primary Key
| Name | Columns |
|---|---|
|
HZ_CUST_ACCOUNT_ROLES_PK |
CUST_ACCOUNT_ROLE_ID |
Columns
| Name | Datatype | Length | Precision | Not-null | Comments | Flexfield-mapping | Status |
|---|---|---|---|---|---|---|---|
| CUST_ACCOUNT_ROLE_ID | NUMBER | 18 | Yes | Unique identifier for the role played by the party in the customer account | |||
| CUST_ACCOUNT_ID | NUMBER | 18 | Yes | Foreign key to the HZ_CUST_ACCOUNTS table | Active | ||
| PRIMARY_FLAG | VARCHAR2 | 1 | Indicates if this party occupies the primary role for this account. Y for a party in the primary role for this account, N for all other parties. | ||||
| ROLE_TYPE | VARCHAR2 | 30 | Lookup for type of role a party performs. | Active | |||
| LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | Active | |||
| SOURCE_CODE | VARCHAR2 | 150 | Promotion that was used to make the party a customer | Active | |||
| LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | Active | ||
| CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | Active | |||
| CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | Active | ||
| LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | Active | |||
| REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row. | Active | |||
| 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. | ||||
| ATTRIBUTE_CATEGORY | VARCHAR2 | 30 | Descriptive Flexfield: structure definition of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE1 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE2 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE3 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE4 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE5 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE6 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE7 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE8 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE9 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE10 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE11 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE12 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE13 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE14 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE15 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE16 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE17 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE18 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE19 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE20 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| CUST_ACCT_SITE_ID | NUMBER | 18 | Customer account site identifier. Foreign key to the HZ_CUST_ACCT_SITES_ALL table | Active | |||
| ATTRIBUTE21 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE22 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE23 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE24 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ORIG_SYSTEM_REFERENCE | VARCHAR2 | 240 | Site use identifier from foreign system | Active | |||
| ATTRIBUTE25 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| STATUS | VARCHAR2 | 1 | Record status flag | Active | |||
| 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. | Active | ||
| CREATED_BY_MODULE | VARCHAR2 | 30 | TCA Who column | Active | |||
| RELATIONSHIP_ID | NUMBER | 18 | Relationship Identifier of the relationship between the person and the account. | Active | |||
| CONTACT_PERSON_ID | NUMBER | 18 | Contains denormalized value based on PartyId and Relationship_Id | Active | |||
| CONFLICT_ID | NUMBER | 18 | Yes | 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). | Active | ||
| 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 | ||||
| ATTRIBUTE26 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE27 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE28 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE29 | VARCHAR2 | 150 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| ATTRIBUTE30 | VARCHAR2 | 255 | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | Active | ||
| CPDRF_VER_SOR | NUMBER | 9 | Cross Pillar Data Replication Framework (CPDRF) system column for tracking record version in System of Record (SOR) pillar when a record change is replicated to subscribing pillars by the replication flows. | ||||
| CPDRF_VER_PILLAR | NUMBER | 9 | Cross Pillar Data Replication Framework (CPDRF) system column for tracking record version when a record is changed by replication flows | ||||
| CPDRF_LAST_UPD | VARCHAR2 | 15 | Cross Pillar Data Replication Framework (CPDRF) system column for tracking source pillar name when a record is changed by the replication flows. | ||||
| ATTRIBUTE_NUMBER1 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER2 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER3 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER4 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER5 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER6 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER7 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER8 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER9 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER10 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER11 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_NUMBER12 | NUMBER | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE1 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE2 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE3 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE4 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE5 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE6 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE7 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE8 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE9 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE10 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE11 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) | ||||
| ATTRIBUTE_DATE12 | DATE | Descriptive Flexfield: segment of the user descriptive flexfield. | Customer Account Contact (HZ_CUST_ACCOUNT_ROLES) |
Foreign Keys
| Table | Foreign Table | Foreign Key Column |
|---|---|---|
| HZ_CUST_ACCOUNT_ROLES | hz_cust_acct_sites_all | CUST_ACCT_SITE_ID |
| HZ_CUST_ACCOUNT_ROLES | hz_cust_accounts | CUST_ACCOUNT_ID |
| ra_customer_trx_all | hz_cust_account_roles | BILL_TO_CONTACT_ID |
| ra_customer_trx_all | hz_cust_account_roles | SHIP_TO_CONTACT_ID |
| ra_customer_trx_all | hz_cust_account_roles | DRAWEE_CONTACT_ID |
| ra_customer_trx_all | hz_cust_account_roles | SOLD_TO_CONTACT_ID |
| hz_role_responsibility | hz_cust_account_roles | CUST_ACCOUNT_ROLE_ID |
| ra_interface_lines_all | hz_cust_account_roles | ORIG_SYSTEM_BILL_CONTACT_ID |
| ra_interface_lines_all | hz_cust_account_roles | ORIG_SYSTEM_SHIP_CONTACT_ID |
| ra_customer_trx_lines_all | hz_cust_account_roles | SHIP_TO_CONTACT_ID |
Indexes
| Index | Uniqueness | Tablespace | Columns |
|---|---|---|---|
| HZ_CUST_ACCOUNT_ROLES_FK1 | Non Unique | Default | CUST_ACCT_SITE_ID |
| HZ_CUST_ACCOUNT_ROLES_FK2 | Non Unique | Default | CUST_ACCOUNT_ID, CUST_ACCT_SITE_ID |
| HZ_CUST_ACCOUNT_ROLES_N1 | Non Unique | Default | ORIG_SYSTEM_REFERENCE |
| HZ_CUST_ACCOUNT_ROLES_N2 | Non Unique | Default | RELATIONSHIP_ID, CONTACT_PERSON_ID |
| HZ_CUST_ACCOUNT_ROLES_N4 | Non Unique | Default | LAST_UPDATE_DATE, CUST_ACCOUNT_ROLE_ID |
| HZ_CUST_ACCOUNT_ROLES_PK | Unique | Default | CUST_ACCOUNT_ROLE_ID |