CREDITCARDPROCESSINGHISTORY

Stores detail information for credit card processing runs.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
BUSINESSPROCESSSTATUSGUID nvarchar(36) Default = '' Value that will identify the corresponding business process status record once it is created.
PARAMETERSETID nvarchar(36) Default = '' Value of the parameter set ID, stored to allow filtering before the business process status record exists.
BATCHNUMBER nvarchar(100) Default = '' Indicates the batch against which this process was run.
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
BUSINESSPROCESSSTATUSID uniqueidentifier yes BUSINESSPROCESSSTATUS.ID Foreign key to the corresponding business process status record.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CREDITCARDPROCESSINGHISTORY_DATEADDED DATEADDED yes
IX_CREDITCARDPROCESSINGHISTORY_DATECHANGED DATECHANGED
PK_CREDITCARDPROCESSINGHISTORY ID yes yes
UC_CREDITCARDPROCESSINGHISTORY_BUSINESSPROCESSSTATUSGUID BUSINESSPROCESSSTATUSGUID yes

Triggers

Trigger Name Description
TR_CREDITCARDPROCESSINGHISTORY_AUDIT_UPDATE
TR_CREDITCARDPROCESSINGHISTORY_AUDIT_DELETE