Stores project sponsorship opportunities.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
Name of the sponsorship project |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
The description of the sponsorship project. |
STARTDATE |
date |
yes |
|
Date that the project sponsorship was established or became effective |
ENDDATE |
date |
yes |
|
Date that the project sponsorship was dissolved or ceased to be effective |
GOAL |
money |
|
Default = 0 |
|
SPONSORGOAL |
int |
|
Default = 0 |
|
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. |
ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
The amount of the project goal in organization currency. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ID |
uniqueidentifier |
|
SPONSORSHIPOPPORTUNITY.ID
|
Primary Key. |
SPROPPPROJECTCATEGORYCODEID |
uniqueidentifier |
yes |
SPROPPPROJECTCATEGORYCODE.ID
|
The category of the project. |
DESIGNATIONID |
uniqueidentifier |
|
DESIGNATION.ID
|
A designation for the project |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this project goal. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from goal amount to organization amount. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SPONSORSHIPOPPORTUNITYPROJECT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_SPONSORSHIPOPPORTUNITYPROJECT_DATEADDED |
DATEADDED |
|
|
yes |
IX_SPONSORSHIPOPPORTUNITYPROJECT_DATECHANGED |
DATECHANGED |
|
|
|
IX_SPONSORSHIPOPPORTUNITYPROJECT_DESIGNATIONID |
DESIGNATIONID |
|
|
|
IX_SPONSORSHIPOPPORTUNITYPROJECT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
IX_SPONSORSHIPOPPORTUNITYPROJECT_SPROPPPROJECTCATEGORYCODEID |
SPROPPPROJECTCATEGORYCODEID |
|
|
|
PK_SPONSORSHIPOPPORTUNITYPROJECT |
ID |
yes |
yes |
|
UC_SPONSORSHIPOPPORTUNITYPROJECT_NAME |
NAME |
yes |
|
|
Triggers