PLANNEDGIFTASSET
Table of assets within each planned gift.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
DESCRIPTION |
nvarchar(1000) |
|
Default = '' |
|
VALUE |
money |
|
Default = 0 |
|
COSTBASIS |
money |
|
Default = 0 |
|
VALUATIONSOURCE |
nvarchar(200) |
|
Default = '' |
|
SEQUENCE |
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. |
TRANSACTIONVALUE |
money |
|
Default = 0 |
The value of the planned gift asset in transaction currency. |
ORGANIZATIONVALUE |
money |
|
Default = 0 |
The value of the planned gift asset in organization currency. |
TRANSACTIONCOSTBASIS |
money |
|
Default = 0 |
The cost basis of the planned gift asset in transaction currency. |
ORGANIZATIONCOSTBASIS |
money |
|
Default = 0 |
The cost basis of the planned gift asset in organization currency. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
PLANNEDGIFTID |
uniqueidentifier |
|
PLANNEDGIFT.ID
|
FK to PLANNEDGIFT |
ASSETTYPECODEID |
uniqueidentifier |
yes |
ASSETTYPECODE.ID
|
FK to ASSETTYPECODE |
ASSETVALUATIONMETHODCODEID |
uniqueidentifier |
yes |
ASSETVALUATIONMETHODCODE.ID
|
FK to ASSETVALUATIONMETHODCODE |
ADDRESSID |
uniqueidentifier |
yes |
ADDRESS.LOCALID
|
FK to ADDRESS |
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 asset. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to calculate the organization amount. |
TRANSACTIONCURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The transaction currency associated with this planned gift asset. |
BASEEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to calculate the base amount. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_PLANNEDGIFTASSET_ADDRESSID |
ADDRESSID |
|
|
|
IX_PLANNEDGIFTASSET_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_PLANNEDGIFTASSET_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
IX_PLANNEDGIFTASSET_DATEADDED |
DATEADDED |
|
|
yes |
IX_PLANNEDGIFTASSET_DATECHANGED |
DATECHANGED |
|
|
|
IX_PLANNEDGIFTASSET_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
IX_PLANNEDGIFTASSET_TRANSACTIONCURRENCYID |
TRANSACTIONCURRENCYID |
|
|
|
PK_PLANNEDGIFTASSET |
ID |
yes |
yes |
|
Triggers
Referenced by