GIVINGLEVELPROGRAMSITE

This table contains info about sites for a giving level program.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
GIVINGLEVELPROGRAMID uniqueidentifier GIVINGLEVELPROGRAM.ID FK to GIVINGLEVELPROGRAM
SITEID uniqueidentifier SITE.ID FK to SITE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_GIVINGLEVELPROGRAMSITE_DATEADDED DATEADDED yes
IX_GIVINGLEVELPROGRAMSITE_DATECHANGED DATECHANGED
PK_GIVINGLEVELPROGRAMSITE ID yes yes
UIX_GIVINGLEVELPROGRAMSITE_GIVINGLEVELPROGRAMID_SITEID GIVINGLEVELPROGRAMID, SITEID yes

Triggers

Trigger Name Description
TR_GIVINGLEVELPROGRAMSITE_AUDIT_UPDATE
TR_GIVINGLEVELPROGRAMSITE_AUDIT_DELETE