PROSPECTASSIGNMENTREQUESTPROSPECTPLAN
Holds prospect plan information for assignment requests
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
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. |
Foreign Keys
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
ID | uniqueidentifier | PROSPECTASSIGNMENTREQUEST.ID | Primary Key. | |
PROSPECTPLANID | uniqueidentifier | yes | PROSPECTPLAN.ID | A foreign key to the prospect plan for the request. |
SECONDARYFUNDRAISERID | uniqueidentifier | yes | SECONDARYFUNDRAISER.ID | A foreign key to the secondary fundraiser for the request. |
SOLICITORROLECODEID | uniqueidentifier | yes | SOLICITORROLECODE.ID | FK to SOLICITORROLECODE |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_DATEADDED | DATEADDED | yes | ||
IX_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_DATECHANGED | DATECHANGED | |||
IX_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_PROSPECTPLANID | PROSPECTPLANID | |||
PK_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN | ID | yes | yes |
Triggers
Trigger Name | Description |
---|---|
TR_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_AUDIT_UPDATE | |
TR_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_AUDIT_DELETE | |
TR_PROSPECTASSIGNMENTREQUESTPROSPECTPLAN_AUDIT_ETLDELETEDID |