HNS_NOTES

HNS NOTES. This table stores all the notes. Notes are primarily CLOB column and stored separately.

Details

  • Schema: FUSION

  • Object owner: HNS

  • Object type: TABLE

  • Tablespace: TRANSACTION_TABLES

Primary Key

Name Columns

HNS_NOTES_PK

NOTES_ID

Columns

Name Datatype Length Precision Not-null Comments
NOTES_ID NUMBER 18 Yes NOTES_ID unique identifer. Primary key for table HNS_NOTES.
AUTHOR_ID NUMBER 18 Author identifier for a NOTES. Author is an employee who add comments to the note.
NOTES_CREATION_DATE TIMESTAMP Notes Create Date column. Date autopopulated once a note is created.
NOTES CLOB Notes clob column. This column is an append only column.
TASK_ID NUMBER 18 Task Identifier. Task is defined as either incident_id, investigation_id or action_id.
UPDATED_BY VARCHAR2 250 The person / owner who updated the note. Note is an append only column. It can only be updated.
UPDATED_DATE TIMESTAMP UPDATE_DATE column: The date the note got updated.
TASK_TYPE_CODE VARCHAR2 30 Yes Type of task i.e. Incident, Investigation or Action.
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.

Foreign Keys

Table Foreign Table Foreign Key Column
HNS_NOTES hns_actions TASK_ID
HNS_NOTES hns_incidents_detail TASK_ID
HNS_NOTES hns_injured_persons TASK_ID
HNS_NOTES hns_investigations_summary TASK_ID
HNS_NOTES hns_incidents_summary TASK_ID

Indexes

Index Uniqueness Tablespace Columns
HNS_NOTES_N1 Non Unique FUSION_TS_TX_DATA TASK_ID
HNS_NOTES_UK1 Unique FUSION_TS_TX_DATA NOTES_ID