WPSECURITIESHISTORY

Contains WealthPoint Securities history data.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SOURCE nvarchar(100) Default = ''
FULLHASH nvarchar(32) Default = ''
PARTIALHASH nvarchar(32) Default = ''
FULLNAME nvarchar(60) Default = ''
CUSIP nvarchar(9) Default = ''
FILERID nvarchar(20) Default = ''
RELATIONSHIP nvarchar(50) Default = ''
TICKER nvarchar(8) Default = ''
ISSUERNAME nvarchar(60) Default = ''
REPORTDATEDIRECT datetime yes
REPORTDATEINDIRECT datetime yes
AMOUNTOWNEDDIRECT bigint Default = ((0))
AMOUNTOWNEDINDIRECT bigint Default = ((0))
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.

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_WPSECURITIESHISTORY_DATEADDED DATEADDED yes
IX_WPSECURITIESHISTORY_DATECHANGED DATECHANGED
IX_WPSECURITIESHISTORY_WPSECURITIESID WPSECURITIESID
PK_WPSECURITIESHISTORY ID yes yes

Triggers

Trigger Name Description
TR_WPSECURITIESHISTORY_AUDIT_UPDATE
TR_WPSECURITIESHISTORY_AUDIT_DELETE