PLANNEDGIFTBENEFICIARY
Table of beneficiaries for each planned gift.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
PRIORITYCODE |
tinyint |
|
Default = 0 |
0=Primary beneficiary, 1=Secondary beneficiary, 2=Tertiary beneficiary |
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. |
PRIORITY |
nvarchar(21) (Computed) |
yes |
CASE [PRIORITYCODE] WHEN 0 THEN N'Primary beneficiary' WHEN 1 THEN N'Secondary beneficiary' WHEN 2 THEN N'Tertiary beneficiary' END |
Provides a translation for the 'PRIORITYCODE' field. |
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_PLANNEDGIFTBENEFICIARY_DATEADDED |
DATEADDED |
|
|
yes |
IX_PLANNEDGIFTBENEFICIARY_DATECHANGED |
DATECHANGED |
|
|
|
PK_PLANNEDGIFTBENEFICIARY |
ID |
yes |
yes |
|
UIX_PLANNEDGIFTBENEFICIARY_PLANNEDGIFTID_BENEFICIARYCONSTITUENTID |
PLANNEDGIFTID, BENEFICIARYCONSTITUENTID |
yes |
|
|
Triggers