Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SUBLEDGER nvarchar(25)   Default = '' Sub Ledger for mapping
 SUBLEDGERTYPE tinyint   Default = 0 Numeric representation of Segment type (Development 1, Ticketing 2, Fixed Assets 3
 DESCRIPTION nvarchar(100)   Default = '' Sub Ledger for mapping
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 SITEID uniqueidentifier SITE.ID Site used by this segment
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_PDACCOUNTCODEMAPSUBLEDGER_DATEADDED DATEADDED    
 IX_PDACCOUNTCODEMAPSUBLEDGER_DATECHANGED DATECHANGED      
 PK_PDACCOUNTCODEMAPSUBLEDGER ID  
 UC_PDACCOUNTCODEMAPSUBLEDGER_SUBLEDGER SUBLEDGER    

Trigger Name Description
 TR_PDACCOUNTCODEMAPSUBLEDGER_AUDIT_UPDATE
 TR_PDACCOUNTCODEMAPSUBLEDGER_AUDIT_DELETE

Entity-Relationship diagram of this table