PSC_CE_INSPECTIONS

Stores information about inspections associated with the Incident or Case.

Details

  • Schema: FUSION

  • Object owner: PSC_CE

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

PSC_CE_INSPECTIONS_PK

TRANSACTION_KEY, TRANSACTION_ID

Columns

Name Datatype Length Precision Not-null Comments Status
TRANSACTION_KEY NUMBER 18 Yes This column is used to indicate the transaction key.
TRANSACTION_PUID VARCHAR2 480 Yes To maintain legacy system transaction identifier
TRANSACTION_ID VARCHAR2 50 Yes This column is used to indicate the transaction Id.
INSPECTION_STATUS VARCHAR2 8 Yes This column is used to indicate the status of the inspection.
SOURCE_TRANSACTION_TYPE VARCHAR2 15 Yes This column is used to indicate the type of the transaction that the source keys refer to.
SOURCE_TRANSACTION_KEY NUMBER 18 Yes This column is used to indicate the source transaction key.
SOURCE_TRANSACTION_PUID VARCHAR2 480 Yes To maintain legacy system transaction identifier for incident or case
SOURCE_TRANSACTION_ID VARCHAR2 50 Yes This column is used to indicate the source transaction id.
SOURCE_TRANSACTION_STATUS VARCHAR2 15 This column is used to indicate the status of the transaction that the source keys refer to.
INSPECTION_SCH_DATE DATE Yes Indicates the date on which inspection is scheduled.
INSPECTION_ACT_DATE DATE Indicates the date on which inspection is actually done.
INSPECTION_DUE_DATE DATE Yes Indicates the date by which inspection should be done.
EXTENSION_DATE DATE Indicates the date by which inspection is extended.
INSPECTED_BY NUMBER 18 Yes This column stores the id of the agency staff doing the inspection. Obsolete
ASSIGNED_ID NUMBER 18 Yes This column stores the id of the agency staff doing the inspection.
USER_NAME VARCHAR2 64 To maintain the legacy system user name or email to identify PersonID
RESULTED_BY VARCHAR2 64 This column stores the user name of the agency staff resulting the inspection.
INSPECTION_OUTCOME VARCHAR2 15 This column is used to store the status of the inspection. It has the same values as CE statuses.
INSPECTION_OUTCOME_REASON VARCHAR2 100 This column is used to store the reason along with the outcome.
INSPECTION_COUNT NUMBER 5 This column is used to store the count of the inspections that have been done for a source_transaction_id.
AGENCY_ID NUMBER 8 Yes This column is used to indicate agency id.
MIGRATED_DATA_FLAG VARCHAR2 3 Yes To indicate if the transaction row is Historical or inflight or PSCR data
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.
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.
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.

Foreign Keys

Table Foreign Table Foreign Key Column
psc_ce_ins_attachment psc_ce_inspections TRANSACTION_KEY
psc_ce_ins_comment psc_ce_inspections TRANSACTION_KEY

Indexes

Index Uniqueness Tablespace Columns
PSC_CE_INSPECTIONS_PK Unique Default TRANSACTION_KEY, TRANSACTION_ID
psc_ce_inspections_U1 Unique Default TRANSACTION_PUID