Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
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) | CONVERT(bigint, TS) | Numeric representation of the timestamp. | |
DATEFROM | datetime | The date that the secondary fundraiser became associated with the prospect plan. | ||
DATETO | datetime | The date that the secondary fundraiser ceased to be associated with the prospect plan. | ||
STATUS | varchar(7) (Computed) | case dbo.UFN_DATE_COMPARETODATERANGE(getdate(), DATEFROM, DATETO) when -1 then 'Future' when 0 then 'Current' when 1 then 'Prior' else '' end | Current, prior, or future. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
PROSPECTPLANID | uniqueidentifier | PROSPECTPLAN.ID | FK to PROSPECTPLAN | |
FUNDRAISERID | uniqueidentifier | CONSTITUENT.LOCALID | FK to CONSTITUENT | |
SOLICITORROLECODEID | uniqueidentifier | SOLICITORROLECODE.ID | FK to SOLICITORROLECODE | |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
IX_SECONDARYFUNDRAISER_DATEADDED | DATEADDED | |||
IX_SECONDARYFUNDRAISER_DATECHANGED | DATECHANGED | |||
IX_SECONDARYFUNDRAISER_FUNDRAISERID | FUNDRAISERID | |||
IX_SECONDARYFUNDRAISER_PROSPECTPLANID | PROSPECTPLANID | |||
PK_SECONDARYFUNDRAISER | ID |
Trigger Name | Description |
---|---|
TR_SECONDARYFUNDRAISER_AUDIT_UPDATE | |
TR_SECONDARYFUNDRAISER_AUDIT_DELETE | |
TR_SECONDARYFUNDRAISER_AUDIT_ETLDELETEDID |
Referenced by | Field |
---|---|
PROSPECTASSIGNMENTREQUESTPROSPECTPLAN | SECONDARYFUNDRAISERID |