CREDITCARD

Holds all credit card details.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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 yes 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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
ISTRANSIENT bit Default = 0 Indicates if the card is transient or not.
REGISTEREDFORUPDATES bit Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
CREDITTYPECODEID uniqueidentifier yes 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.

Indexes

Index Name Fields Unique Primary Clustered
IX_CREDITCARD_CREDITCARDPARTIALNUMBER_EXPIRESON CREDITCARDPARTIALNUMBER, EXPIRESON
IX_CREDITCARD_CREDITCARDTOKEN CREDITCARDTOKEN
IX_CREDITCARD_DATEADDED DATEADDED yes
IX_CREDITCARD_DATECHANGED DATECHANGED
IX_CREDITCARD_ID ID
PK_CREDITCARD ID yes yes

Triggers

Trigger Name Description
TR_CREDITCARD_AUDIT_UPDATE
TR_CREDITCARD_AUDIT_DELETE

Referenced by

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