Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
KEYNAME | nvarchar(100) | Default = '' | Last name for individuals, Org name for organizations. | |
KEYNAMEPREFIX | nvarchar(50) | Default = '' | For organizations, stores the name contents before the sort break slash. | |
FIRSTNAME | nvarchar(50) | Default = '' | For individuals, stores the first name. | |
MIDDLENAME | nvarchar(50) | Default = '' | For individuals, stores the middle name. | |
MAIDENNAME | nvarchar(100) | Default = '' | For individuals, stores the maiden name. | |
NICKNAME | nvarchar(50) | Default = '' | For individuals, stores the nickname. | |
SSN | nvarchar(4000) | Default = '' | For individuals, stores the SSN or other government ID. | |
SSNINDEX | nvarchar(24) | |||
GENDERCODE | tinyint | Default = 0 | 0=Unknown, 1=Male, 2=Female | |
BIRTHDATE | UDT_FUZZYDATE | Default = '00000000' | For individuals, stores the date of birth. | |
ISINACTIVE | bit | Default = 0 | Indicates whether or not the record is inactive. | |
GIVESANONYMOUSLY | bit | Default = 0 | Indicates whether or not the record gives anonymously. | |
WEBADDRESS | UDT_WEBADDRESS | Default = '' | The constituent's web address. | |
PICTURE | varbinary | A photo or emblem for this constituent. | ||
PICTURETHUMBNAIL | varbinary | |||
ISORGANIZATION | bit | Default = 0 | Indicates whether a record is an organization. | |
NETCOMMUNITYMEMBER | bit | Default = 0 | Indicates whether a record is a member of our online community. | |
DONOTMAIL | bit | Default = 0 | Indicates whether a constituent does not want to be mailed at any address. | |
DONOTEMAIL | bit | Default = 0 | Indicates whether a constituent does not want to be emailed at any email address. | |
DONOTPHONE | bit | Default = 0 | Indicates whether a constituent does not want to be called at any phone number. | |
CUSTOMIDENTIFIER | nvarchar(100) | Default = '' | User-definable custom identifier. | |
SEQUENCEID | int | Identity column used to increment the default lookupid. | ||
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. | |
ISGROUP | bit | Default = 0 | Indicates whether a record is a group | |
DISPLAYNAME | nvarchar(100) | Default = '' | Display name for households. | |
GENDER | nvarchar(7) (Computed) | CASE [GENDERCODE] WHEN 0 THEN N'Unknown' WHEN 1 THEN N'Male' WHEN 2 THEN N'Female' END | Provides a translation for the 'GENDERCODE' field. | |
LOOKUPID | nvarchar(100) (Computed) | (CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) | Unique identifer that supports user defined values as well as system generated values. | |
ISCONSTITUENT | bit | Default = 1 | Indicates if the record is a constituent for fundraising purposes. | |
KEYNAMESOUNDEX | varchar(5) (Computed) | soundex(KEYNAME) | The soundex value of the keyname field. | |
AGE | int (Computed) | dbo.UFN_AGEFROMFUZZYDATE(CONSTITUENT.BIRTHDATE, getdate()) | ||
NAME | nvarchar(154) (Computed) | CASE ISORGANIZATION WHEN 1 THEN CASE KEYNAMEPREFIX WHEN '' THEN KEYNAME ELSE KEYNAMEPREFIX + ' ' + KEYNAME END ELSE CASE ISGROUP WHEN 1 THEN CASE DISPLAYNAME WHEN '' THEN KEYNAME ELSE DISPLAYNAME END ELSE CASE FIRSTNAME WHEN '' THEN '' ELSE FIRSTNAME + ' ' END + CASE MIDDLENAME WHEN '' THEN '' ELSE LEFT(MIDDLENAME,1) + '. ' END + KEYNAME END END |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
TITLECODEID | uniqueidentifier | TITLECODE.LOCALID | FK to TITLECODE | |
SUFFIXCODEID | uniqueidentifier | SUFFIXCODE.LOCALID | FK to SUFFIXCODE | |
MARITALSTATUSCODEID | uniqueidentifier | MARITALSTATUSCODE.LOCALID | FK to MARITALSTATUSCODE | |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
TITLE2CODEID | uniqueidentifier | TITLECODE.LOCALID | FK to TITLECODE | |
SUFFIX2CODEID | uniqueidentifier | SUFFIXCODE.LOCALID | FK to SUFFIXCODE |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
IX_CONSTITUENT_DATEADDED | DATEADDED | |||
IX_CONSTITUENT_DATECHANGED | DATECHANGED | |||
IX_CONSTITUENT_ID | ID | |||
IX_CONSTITUENT_ISCONSTITUENT_ID | ISCONSTITUENT, ID | |||
IX_CONSTITUENT_KEYNAME | KEYNAME | |||
IX_CONSTITUENT_KEYNAMESOUNDEX | KEYNAMESOUNDEX | |||
IX_CONSTITUENT_MAIDENNAME | MAIDENNAME | |||
IX_CONSTITUENT_SSNINDEX | SSNINDEX | |||
PK_CONSTITUENT | ID | |||
UC_CONSTITUENT_LOOKUPID | LOOKUPID | |||
UIX_CONSTITUENT_SEQUENCEID | SEQUENCEID |
Entity-Relationship diagram of this table (BANKACCOUNTADJUSTMENTMEDIALINK-BATCHCOAUPDATE)
Entity-Relationship diagram of this table (BATCHCONSTITUENT-BATCHMEMBERSHIPMEMBER)
Entity-Relationship diagram of this table (BATCHMEMBERSHIPTRANSACTION-CAMPAIGNATTACHMENT)
Entity-Relationship diagram of this table (CAMPAIGNFUNDRAISER-CONSTITUENTNOTEATTACHMENT)
Entity-Relationship diagram of this table (CONSTITUENTORIGINATION-COURSENOTE)
Entity-Relationship diagram of this table (CREDIT-DONATIONBATCH)
Entity-Relationship diagram of this table (DONORCHALLENGE-EVENTNOTE)
Entity-Relationship diagram of this table (EVENTSPEAKER-FAFNFGCAMPAIGNLEVEL)
Entity-Relationship diagram of this table (FAFORGANIZATIONINDIVIDUALRELATION-FUNDINGREQUESTATTACHMENT)
Entity-Relationship diagram of this table (FUNDINGREQUESTMEDIALINK-INTERACTIONPARTICIPANT)
Entity-Relationship diagram of this table (INVITEE-MEMBERMEDIALINK)
Entity-Relationship diagram of this table (MEMBERNOTE-NETCOMMUNITYNEWSLETTERSUBSCRIPTION)
Entity-Relationship diagram of this table (OPPORTUNITYDESIGNATION-PROSPECTASSIGNMENTPROCESS)
Entity-Relationship diagram of this table (PROSPECTASSIGNMENTREQUEST-PROSPECTSEGMENTATIONPROSPECT)
Entity-Relationship diagram of this table (PROSPECTTEAM-REVENUE)
Entity-Relationship diagram of this table (REVENUEATTACHMENT-SECONDARYFUNDRAISER)
Entity-Relationship diagram of this table (SITEIMAGESEXTENSION-SPONSORSHIPTRANSACTION)
Entity-Relationship diagram of this table (STAFFDATERANGE-TEAMEXTENSION)
Entity-Relationship diagram of this table (TEAMFUNDRAISER-VOLUNTEERAWARDASSIGNMENT)
Entity-Relationship diagram of this table (VOLUNTEERCERTIFICATION-WPRELATIONSHIP_NPA_IND)
Entity-Relationship diagram of this table (WPRELATIONSHIP_PF-WPSEARCHHISTORY)