WPSECURITIESTRANSACTION

Contains WealthPoint Securities Transactions data.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
HOLDINGSID int Default = 0
AMOUNT bigint Default = ((0))
DATEFROM datetime yes
DATETO datetime yes
BB_PRICE money Default = 0
AMOUNTTYPE nvarchar(50) Default = ''
TRANSDESC nvarchar(100) Default = ''
TRANSVALUE nvarchar(100) Default = ''
BB_TRANSVALUE money Default = 0
TRANSTYPE nvarchar(50) Default = ''
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.
FULLHASH nvarchar(32) Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
WPSECURITIESID uniqueidentifier WPSECURITIES.ID FK to WPSECURITIES
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_WPSECURITIESTRANSACTION_DATEADDED DATEADDED yes
IX_WPSECURITIESTRANSACTION_DATECHANGED DATECHANGED
IX_WPSECURITIESTRANSACTION_WPSECURITIESID WPSECURITIESID
PK_WPSECURITIESTRANSACTION ID yes yes

Triggers

Trigger Name Description
TR_WPSECURITIESTRANSACTION_AUDIT_UPDATE
TR_WPSECURITIESTRANSACTION_AUDIT_DELETE