DISBURSEMENTPROCESSTEMPLATESIGNATURE

Signatures assigned to a disbursement process template

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
TYPECODE tinyint Default = 0 Signature 1 or Signature 2?
TYPE nvarchar(11) (Computed) yes CASE [TYPECODE] WHEN 0 THEN N'Signature 1' WHEN 1 THEN N'Signature 2' END Provides a translation for the 'TYPECODE' field.
FROMAMOUNT money Default = 0 Amount the range starts from
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
DISBURSEMENTPROCESSTEMPLATEID uniqueidentifier DISBURSEMENTPROCESSTEMPLATE.ID The disbursement process template that the signature is assigned to
BANKACCOUNTAUTHORIZEDSIGNATUREID uniqueidentifier yes BANKACCOUNTAUTHORIZEDSIGNATURE.ID The signature to use in the range
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DISBURSEMENTPROCESSTEMPLATESIGNATURE_DATEADDED DATEADDED yes
IX_DISBURSEMENTPROCESSTEMPLATESIGNATURE_DATECHANGED DATECHANGED
IX_DISBURSEMENTPROCESSTEMPLATESIGNATURE_DISBURSEMENTPROCESSTEMPLATEID DISBURSEMENTPROCESSTEMPLATEID
PK_DISBURSEMENTPROCESSTEMPLATESIGNATURE ID yes yes
UC_DISBURSEMENTPROCESSTEMPLATESIGNATURE_UNIQUEAMOUNT DISBURSEMENTPROCESSTEMPLATEID, FROMAMOUNT, TYPECODE yes

Triggers

Trigger Name Description
TR_DISBURSEMENTPROCESSTEMPLATESIGNATURE_AUDIT_UPDATE
TR_DISBURSEMENTPROCESSTEMPLATESIGNATURE_AUDIT_DELETE