Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' The name of the naming opportunity's facility.
 ADDRESSBLOCK nvarchar(150)   Default = '' Contains the facility's address lines.
 CITY nvarchar(50)   Default = '' Contains the facility's city.
 POSTCODE nvarchar(12)   Default = '' Contains the facility's post code.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 COUNTRYID uniqueidentifier   COUNTRY.LOCALID FK to COUNTRY
 STATEID uniqueidentifier STATE.LOCALID FK to STATE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 AREACODEID uniqueidentifier NAMINGOPPORTUNITYAREACODE.ID FK to NAMINGOPPORTUNITYAREACODE
 UNITCODEID uniqueidentifier NAMINGOPPORTUNITYUNITCODE.ID FK to NAMINGOPPORTUNITYUNITCODE

Index Name Field(s) Unique Primary Clustered
 IX_NAMINGOPPORTUNITYFACILITY_DATEADDED DATEADDED    
 IX_NAMINGOPPORTUNITYFACILITY_DATECHANGED DATECHANGED      
 PK_NAMINGOPPORTUNITYFACILITY ID  

Trigger Name Description
 TR_NAMINGOPPORTUNITYFACILITY_AUDIT_UPDATE
 TR_NAMINGOPPORTUNITYFACILITY_AUDIT_DELETE

Referenced by Field
 NAMINGOPPORTUNITY FACILITYID

Entity-Relationship diagram of this table