PDACCOUNTCODEMAPSUBLEDGER (4.0SP12)

Account code mapping subledger types table.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SITEID

uniqueidentifier

true

Site used by this segment

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

SUBLEDGER

nvarchar(25)

false

''

Sub Ledger for mapping

SUBLEDGERTYPE

tinyint

false

0

Numeric representation of Segment type (Development 1, Ticketing 2, Fixed Assets 3

DESCRIPTION

nvarchar(100)

false

''

Sub Ledger for mapping

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PDACCOUNTCODEMAPSUBLEDGER_DATEADDED

DATEADDED

False

False

True

IX_PDACCOUNTCODEMAPSUBLEDGER_DATECHANGED

DATECHANGED

False

False

False

PK_PDACCOUNTCODEMAPSUBLEDGER

ID

True

True

False

UC_PDACCOUNTCODEMAPSUBLEDGER_SUBLEDGER

SUBLEDGER

True

False

False

Triggers
Trigger Name Description

TR_PDACCOUNTCODEMAPSUBLEDGER_AUDIT_UPDATE

TR_PDACCOUNTCODEMAPSUBLEDGER_AUDIT_DELETE