CREDITCARDPROCESSINGMERCHANTACCOUNT

Stores the merchant accounts defined for a credit card processing business process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MERCHANTACCOUNTID uniqueidentifier Indicates the merchant account to use for processing the credit card transactions for a specific currency.
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
CREDITCARDPROCESSINGID uniqueidentifier CREDITCARDPROCESSING.ID FK to CREDITCARDPROCESSING
CURRENCYID uniqueidentifier CURRENCY.ID FK to CURRENCY
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CREDITCARDPROCESSINGMERCHANTACCOUNT_DATEADDED DATEADDED yes
IX_CREDITCARDPROCESSINGMERCHANTACCOUNT_DATECHANGED DATECHANGED
PK_CREDITCARDPROCESSINGMERCHANTACCOUNT ID yes yes
UIX_CREDITCARDPROCESSINGMERCHANTACCOUNT_CREDITCARDPROCESSINGID_CURRENCYID CREDITCARDPROCESSINGID, CURRENCYID yes

Triggers

Trigger Name Description
TR_CREDITCARDPROCESSINGMERCHANTACCOUNT_AUDIT_UPDATE
TR_CREDITCARDPROCESSINGMERCHANTACCOUNT_AUDIT_DELETE