SPONSORSHIPOPPORTUNITYAGERANGE

Stores age ranges for child sponsorship opportunities.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MINAGE tinyint Default = 0 Minimum Age
MAXAGE tinyint Default = 0 Maximum Age
DISPLAYNAME varchar(63) (Computed) yes CONVERT(VARCHAR,MINAGE) + ' - ' + CONVERT(VARCHAR,MAXAGE) Returns the minage + maxage.
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SPONSORSHIPOPPORTUNITYAGERANGE_DATEADDED DATEADDED yes
IX_SPONSORSHIPOPPORTUNITYAGERANGE_DATECHANGED DATECHANGED
PK_SPONSORSHIPOPPORTUNITYAGERANGE ID yes yes

Triggers

Trigger Name Description
TR_SPONSORSHIPOPPORTUNITYAGERANGE_AUDIT_UPDATE
TR_SPONSORSHIPOPPORTUNITYAGERANGE_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHSPONSORSHIP SPONSORSHIPOPPORTUNITYAGERANGEID
SALESORDERITEMSPONSORSHIP SPONSORSHIPOPPORTUNITYAGERANGEID
SPONSORSHIP SPONSORSHIPOPPORTUNITYAGERANGEID
SPONSORSHIPGREATESTNEEDRULESETREF SPONSORSHIPOPPORTUNITYAGERANGEID
SPONSORSHIPOPPORTUNITYGROUP SPONSORSHIPOPPORTUNITYAGERANGEID
SPONSORSHIPOPPORTUNITYRESERVATIONCOUNTS AGERANGEID
SPONSORSHIPTRANSFERPROCESS SPROPPAGERANGEID