NAMEFORMATFUNCTIONDETAIL

Contains function detail for user defined name formats.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0 Stores the user-defined sequence for the name format
REMOVETRAILINGSPACE bit Default = 0 Indicate a space will not be appended
INITIAL bit Default = 0 Indicate this field will only show the initial letter
SMARTREMOVE bit Default = 0 Indicate this field will not be displayed if the next field is blank or null
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
NAMEFORMATFUNCTIONID uniqueidentifier NAMEFORMATFUNCTION.ID FK to NAMEFORMATFUNCTION
NAMEFORMATFIELDID uniqueidentifier NAMEFORMATFIELD.ID FK to NAMEFORMATFIELD
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_NAMEFORMATFUNCTIONDETAIL_DATEADDED DATEADDED yes
IX_NAMEFORMATFUNCTIONDETAIL_DATECHANGED DATECHANGED
PK_NAMEFORMATFUNCTIONDETAIL ID yes yes

Triggers

Trigger Name Description
TR_NAMEFORMATFUNCTIONDETAIL_AUDIT_UPDATE
TR_NAMEFORMATFUNCTIONDETAIL_AUDIT_DELETE