NAMINGOPPORTUNITYFACILITY

Contains information pertaining to a naming opportunity facility.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_NAMINGOPPORTUNITYFACILITY_DATEADDED DATEADDED yes
IX_NAMINGOPPORTUNITYFACILITY_DATECHANGED DATECHANGED
PK_NAMINGOPPORTUNITYFACILITY ID yes yes

Triggers

Trigger Name Description
TR_NAMINGOPPORTUNITYFACILITY_AUDIT_UPDATE
TR_NAMINGOPPORTUNITYFACILITY_AUDIT_DELETE

Referenced by

Referenced by Field
NAMINGOPPORTUNITY FACILITYID