PSC_CE_INS_ATTACHMENT

Stores the attachments associated with code enforcement inspections.

Details

  • Schema: FUSION

  • Object owner: PSC_CE

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

PSC_CE_INS_ATTACHMENT_PK

ATTACHMENT_KEY

Columns

Name Datatype Length Precision Not-null Comments
ATTACHMENT_KEY NUMBER 18 Yes Unique key to identify a inspection attachment.
TRANSACTION_KEY NUMBER 18 Yes Indicates the inspection key to which the attachment is associated.
TRANSACTION_PUID VARCHAR2 480 Yes To maintain legacy system attachment identifier
ATTACHMENT_ID NUMBER 18 Yes Indicates the attachment id from psc_com_attachment table.
ATTACHMENT_PUID VARCHAR2 480 Yes To maintain legacy system attachment identifier for reverse lookup with psc_com_attachment
DOC_CATEGORY VARCHAR2 30 Indicates the document category of the attachment.
DOC_SUBCATEGORY VARCHAR2 30 Indicates the document subcategory of the attachment.
AGENCY_ID NUMBER 8 Yes Indicates the Agency ID associated with the attachment.
MIGRATED_DATA_FLAG VARCHAR2 3 Yes To indicate if the row is Inflight or history 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.
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.

Foreign Keys

Table Foreign Table Foreign Key Column
PSC_CE_INS_ATTACHMENT psc_ce_inspections TRANSACTION_KEY

Indexes

Index Uniqueness Tablespace Columns
PSC_CE_INS_ATTACHMENT_PK Unique Default ATTACHMENT_KEY
psc_ce_ins_attachment_U1 Unique Default ATTACHMENT_PUID