NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION

Stores installed locations associated with a naming opportunity recognition record.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
LOCATION nvarchar(100) Default = '' The specific location where the name will be placed.
STATUSDATE UDT_FUZZYDATE Default = '00000000' The date associated with the current status.
SEQUENCE int Default = 0
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
NAMINGOPPORTUNITYRECOGNITIONID uniqueidentifier NAMINGOPPORTUNITYRECOGNITION.ID The naming opportunity recognition to which this location applies.
TYPECODEID uniqueidentifier NAMINGOPPORTUNITYTYPECODE.ID The type of item that the name will appear on.
STATUSCODEID uniqueidentifier yes NAMINGOPPLOCATIONSTATUSCODE.ID The current status of the creation and placement of the named item.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION_DATEADDED DATEADDED yes
IX_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION_DATECHANGED DATECHANGED
IX_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION_NAMINGOPPORTUNITYRECOGNITIONID NAMINGOPPORTUNITYRECOGNITIONID
PK_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION ID yes yes

Triggers

Trigger Name Description
TR_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION_AUDIT_UPDATE
TR_NAMINGOPPORTUNITYRECOGNITIONINSTALLEDLOCATION_AUDIT_DELETE