STANDINGORDERSIMPORTTEMPLATEFIELD

Fields to use in the standing orders import process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(50) Default = '' The name of the field.
STARTPOSITION int Default = 0 The position in the row of the import file that marks the beginning of the field.
LENGTH int Default = 0 The fixed length of the field being imported.
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
IMPORTTEMPLATEID uniqueidentifier STANDINGORDERSIMPORTTEMPLATE.ID The import template to which this field is associated.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_STANDINGORDERSIMPORTTEMPLATEFIELD_DATEADDED DATEADDED yes
IX_STANDINGORDERSIMPORTTEMPLATEFIELD_DATECHANGED DATECHANGED
PK_STANDINGORDERSIMPORTTEMPLATEFIELD ID yes yes
UIX_STANDINGORDERSIMPORTTEMPLATEFIELD_NAME_IMPORTTEMPLATEID NAME, IMPORTTEMPLATEID yes

Triggers

Trigger Name Description
TR_STANDINGORDERSIMPORTTEMPLATEFIELD_AUDIT_UPDATE
TR_STANDINGORDERSIMPORTTEMPLATEFIELD_AUDIT_DELETE