PROSPECTASSIGNMENTREQUESTPROSPECT

Holds Prospect Information Prospect 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.
PROSPECTID uniqueidentifier yes CONSTITUENT.LOCALID A foreign key to the prospect for the request.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROSPECTASSIGNMENTREQUESTPROSPECT_DATEADDED DATEADDED yes
IX_PROSPECTASSIGNMENTREQUESTPROSPECT_DATECHANGED DATECHANGED
IX_PROSPECTASSIGNMENTREQUESTPROSPECT_PROSPECTID PROSPECTID
PK_PROSPECTASSIGNMENTREQUESTPROSPECT ID yes yes

Triggers

Trigger Name Description
TR_PROSPECTASSIGNMENTREQUESTPROSPECT_AUDIT_UPDATE
TR_PROSPECTASSIGNMENTREQUESTPROSPECT_AUDIT_DELETE