Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 CARDHOLDERNAME nvarchar(255)   Default = '' The name on the credit card that was used when making this payment.
 CREDITCARDPARTIALNUMBER nvarchar(4)   Default = '' Used to store the last few digits of a credit card number for credit card payments.
 EXPIRESON UDT_FUZZYDATE   Default = '00000000' The expiration date of the credit card for a credit card payment.
 AUTHORIZATIONCODE nvarchar(20)   Default = '' The authorization code for a credit card payment, if applicable.
 TRANSACTIONID uniqueidentifier The BBPS transaction ID.
 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.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   RECEIVABLEPAYMENT.ID Primary Key.
 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_RECEIVABLEPAYMENTCREDITCARD_DATEADDED DATEADDED    
 IX_RECEIVABLEPAYMENTCREDITCARD_DATECHANGED DATECHANGED      
 PK_RECEIVABLEPAYMENTCREDITCARD ID  

Trigger Name Description
 TR_RECEIVABLEPAYMENTCREDITCARD_RECEIVABLEPAYMENTTYPECORRECT
 TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_UPDATE
 TR_RECEIVABLEPAYMENTCREDITCARD_AUDIT_DELETE

Entity-Relationship diagram of this table