PDACCOUNTCODEMAPAPPLICATIONTYPE

A listing of Application Types

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
TYPENAME nvarchar(50) Default = '' Name of Application type
NAMEID int Default = 0 Entry Identifier
OFFICEID int Default = 0 Office Identifier
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.
HASSUBTYPE bit Default = 0 Indicates if the application type has subtypes
ADDITIONALSUBTYPE tinyint Default = 0 Subtype; correlates to ADDITIONALSUBTYPE in PDACCOUNTCODEMAPPINGSUBTYPE

Foreign Keys

Foreign Key Field Type Null Notes Description
PDACCOUNTCODEMAPOFFICEID uniqueidentifier PDACCOUNTCODEMAPOFFICE.ID FK to Office
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PDACCOUNTCODEMAPAPPLICATIONTYPE_DATEADDED DATEADDED yes
IX_PDACCOUNTCODEMAPAPPLICATIONTYPE_DATECHANGED DATECHANGED
PK_PDACCOUNTCODEMAPAPPLICATIONTYPE ID yes yes

Triggers

Trigger Name Description
TR_PDACCOUNTCODEMAPAPPLICATIONTYPE_AUDIT_UPDATE
TR_PDACCOUNTCODEMAPAPPLICATIONTYPE_AUDIT_DELETE