GROUPGOAL
Group goals and their attributes
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| AMOUNT |
money |
|
Default = 0 |
|
| PROGRESS |
int |
|
Default = 0 |
|
| GOALDATE |
datetime |
yes |
|
|
| 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. |
| ISFUNDRAISINGGOAL |
bit |
|
Default = 0 |
Designates whether the goal is a fundraising goal |
| STARTDATE |
datetime |
yes |
|
|
| DESCRIPTION |
nvarchar(200) |
|
Default = '' |
Provides a description of the purpose of a goal. |
| NAME |
nvarchar(50) |
|
Default = '' |
Provides a name of the purpose of a goal. |
| ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
The amount of the group fundraising goal in organization currency. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| GROUPID |
uniqueidentifier |
|
GROUPDATA.ID
|
FK to GROUPDATA |
| GROUPGOALUNITCODEID |
uniqueidentifier |
yes |
GROUPGOALUNITCODE.ID
|
FK to GROUPGOALUNITCODE |
| 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 group fundraising goal. |
| ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from amount to organization amount. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_GROUPGOAL_DATEADDED |
DATEADDED |
|
|
yes |
| IX_GROUPGOAL_DATECHANGED |
DATECHANGED |
|
|
|
| PK_GROUPGOAL |
ID |
yes |
yes |
|
| UIX_GROUPGOAL_GROUPID_NAME_ISFUNDRAISINGGOAL |
GROUPID, NAME, ISFUNDRAISINGGOAL |
yes |
|
|
Triggers