PSC_INS_ATTACHMENT
This table contains inspection document attachment information.
Details
-
Schema: FUSION
-
Object owner: PSC_PER
-
Object type: TABLE
-
Tablespace: TRANSACTION_TABLES
Primary Key
| Name | Columns |
|---|---|
|
PSC_INS_ATTACHMENT_PK |
INS_ATTACHMENT_KEY |
Columns
| Name | Datatype | Length | Precision | Not-null | Comments | Status |
|---|---|---|---|---|---|---|
| INS_ATTACHMENT_KEY | NUMBER | 18 | Yes | This column is used to indicate ins attachment key | Active | |
| ATTACHMENT_TYPE | VARCHAR2 | 15 | Yes | This column is used to indicate attachment type | Active | |
| INS_ATTACHMENT_PUID | VARCHAR2 | 480 | Yes | Alternate key for an inspection attachment. Used by CRM Import. | ||
| INSPECTION_KEY | NUMBER | 18 | Yes | Unique identifier for an inspection. | ||
| INSPECTION_CHKLIST_KEY | NUMBER | 18 | Inspection Check List key. | |||
| INSPECTION_CL_ITEM_KEY | NUMBER | 18 | Inspection Checklist Item key. | |||
| INSPECTION_PUID | VARCHAR2 | 480 | Yes | Alternate key for an Inspection. Used by CRM import. | ||
| INSPECTION_CHKLIST_PUID | VARCHAR2 | 480 | Alternate key for an inspection checklist. Used by CRM Import. | |||
| INSPECTION_CL_ITEM_PUID | VARCHAR2 | 480 | Alternate key for an inspection checklist item. Used by CRM Import. | |||
| INSPECTION_ID | VARCHAR2 | 50 | Yes | This column is used to indicate inspection id | Active | |
| CHECKLIST_ID | VARCHAR2 | 15 | This column is used to indicate checklist id | Active | ||
| CHECKLIST_ITEM_ID | VARCHAR2 | 15 | This column is used to indicate checklist item id | Active | ||
| ATTACHMENT_ID | NUMBER | 18 | Yes | This column is used to indicate attachment id | 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 | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | Active | |
| CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | Active | ||
| LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | Active | |
| LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | Active | ||
| LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | Active | ||
| AGENCY_ID | NUMBER | 8 | Yes | This column is used to indicate agency id | Active | |
| MIGRATED_DATA_FLAG | VARCHAR2 | 3 | Status of CRM Data Import migration. | |||
| LNP_RECORD_KEY | NUMBER | 18 | Yes | This column indicates the lnp_record_key |
Foreign Keys
| Table | Foreign Table | Foreign Key Column |
|---|---|---|
| PSC_INS_ATTACHMENT | psc_ins_inspection | INSPECTION_KEY |
| PSC_INS_ATTACHMENT | psc_ins_inspection_chklist | INSPECTION_CHKLIST_KEY |
| PSC_INS_ATTACHMENT | psc_ins_inspection_cl_item | INSPECTION_CL_ITEM_KEY |
| PSC_INS_ATTACHMENT | psc_lnp_record | LNP_RECORD_KEY |
Indexes
| Index | Uniqueness | Tablespace | Columns | Status |
|---|---|---|---|---|
| PSC_INS_ATTACHMENT_FK1 | Non Unique | Default | INSPECTION_KEY | Active |
| PSC_INS_ATTACHMENT_FK2 | Non Unique | Default | INSPECTION_CHKLIST_KEY | |
| PSC_INS_ATTACHMENT_FK3 | Non Unique | Default | INSPECTION_CL_ITEM_KEY | |
| PSC_INS_ATTACHMENT_FK4 | Non Unique | Default | LNP_RECORD_KEY | |
| PSC_INS_ATTACHMENT_N1 | Non Unique | Default | INSPECTION_ID | |
| PSC_INS_ATTACHMENT_PK | Unique | Default | INS_ATTACHMENT_KEY | Active |
| PSC_INS_ATTACHMENT_UK1 | Unique | Default | INS_ATTACHMENT_PUID |