BANKACCOUNTSITE (4.0SP14)

This contains information pertaining to an bank account's sites.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BANKACCOUNTID

uniqueidentifier

false

FK to BANKACCOUNT

SITEID

uniqueidentifier

false

FK to SITE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

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_BANKACCOUNTSITE_BANKACCOUNTID

BANKACCOUNTID

False

False

False

IX_BANKACCOUNTSITE_DATEADDED

DATEADDED

False

False

True

IX_BANKACCOUNTSITE_DATECHANGED

DATECHANGED

False

False

False

IX_BANKACCOUNTSITE_SITEID

SITEID

False

False

False

PK_BANKACCOUNTSITE

ID

True

True

False

Triggers
Trigger Name Description

TR_BANKACCOUNTSITE_AUDIT_UPDATE

TR_BANKACCOUNTSITE_AUDIT_DELETE