SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS (4.0SP17)

Table that holds status of existing reservation keys.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

OPPORTUNITYRESERVATIONKEYID

uniqueidentifier

true

FK to SPONSORSHIPOPPORTUNITYRESERVEPROCESS

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

STATUSCODE

tinyint

false

0

The status code of a reservation key.

STATUS

nvarchar(8) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS_DATEADDED

DATEADDED

False

False

True

IX_SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS_DATECHANGED

DATECHANGED

False

False

False

PK_SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS

ID

True

True

False

Triggers
Trigger Name Description

TR_SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS_AUDIT_UPDATE

TR_SPONSORSHIPOPPORTUNITYRESERVATIONSTATUS_AUDIT_DELETE