| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
GOAL |
money | Default = 0 | The amount of the goal. | |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
ORGANIZATIONGOAL |
money | Default = 0 | Amount of the goal in organization currency. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
DESIGNATIONID |
uniqueidentifier | DESIGNATION.ID | The parent record for this goal. | |
DESIGNATIONLEVELGOALID |
uniqueidentifier | DESIGNATIONLEVELGOAL.ID | The parent goal record for this goal. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert from goal amount to organization goal amount. |
BASECURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | The base currency associated with this goal. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_DESIGNATIONGOAL_BASECURRENCYID |
BASECURRENCYID | |||
IX_DESIGNATIONGOAL_DATEADDED |
DATEADDED | ![]() |
||
IX_DESIGNATIONGOAL_DATECHANGED |
DATECHANGED | |||
IX_DESIGNATIONGOAL_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID | |||
PK_DESIGNATIONGOAL |
ID | ![]() |
![]() |
|
UIX_DESIGNATIONGOAL_DESIGNATIONID_DESIGNATIONLEVELGOALID |
DESIGNATIONID, DESIGNATIONLEVELGOALID | ![]() |
| Trigger Name | Description |
|---|---|
TR_DESIGNATIONGOAL_INSERTUPDATE_CURRENCY |
|
TR_DESIGNATIONGOAL_AUDIT_UPDATE |
|
TR_DESIGNATIONGOAL_AUDIT_DELETE |

ID
GOAL
TSLONG
DESIGNATIONID
IX_DESIGNATIONGOAL_BASECURRENCYID
IX_DESIGNATIONGOAL_DATEADDED