Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 CARDHOLDERNAME nvarchar(255)   Default = '' The name on the credit card.
 CREDITCARDPARTIALNUMBER nvarchar(4)   Default = '' Stores the last four digits of a credit card number
 EXPIRESON UDT_FUZZYDATE   Default = '00000000' The expiration date of the credit card.
 CREDITCARDTOKEN uniqueidentifier The token used to identify the card on the BBPS service.
 VALIDFROM UDT_FUZZYDATE   Default = '00000000' The date a credit card is valid from. Only applies for UK credit cards.
 ISSUENUMBER nvarchar(3)   Default = '' The issue number of the credit card. Only applies for UK credit cards.
 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.
 ISTRANSIENT bit   Default = 0 Indicates if the card is transient or not.

Foreign Key Field Type Null Notes Description
 CREDITTYPECODEID uniqueidentifier CREDITTYPECODE.ID The type of credit card used when making a credit card payment.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_CREDITCARD_CREDITCARDPARTIALNUMBER_EXPIRESON CREDITCARDPARTIALNUMBER, EXPIRESON      
 IX_CREDITCARD_CREDITCARDTOKEN CREDITCARDTOKEN      
 IX_CREDITCARD_DATEADDED DATEADDED    
 IX_CREDITCARD_DATECHANGED DATECHANGED      
 IX_CREDITCARD_ID ID      
 PK_CREDITCARD ID  

Trigger Name Description
 TR_CREDITCARD_AUDIT_UPDATE
 TR_CREDITCARD_AUDIT_DELETE

Referenced by Field
 BATCHEVENTSPONSORSHIP CREDITCARDID
 BATCHMEMBERSHIPDUES CREDITCARDID
 BATCHREVENUE CREDITCARDID
 BATCHSPONSORSHIP CREDITCARDID
 DONATIONBATCH CREDITCARDID
 EVENTSPONSOR CREDITCARDID
 REGISTRANTBATCH CREDITCARDID
 REGISTRANTEXTENSION CREDITCARDID
 REVENUESCHEDULE CREDITCARDID

Entity-Relationship diagram of this table