SALESORDERITEMMEMBER

Stores member information for a sales order item membership.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ISPRIMARY bit Default = 0 Indicates this is the primary member.
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.
ISCAREGIVER bit Default = 0 Indicates if the member is care giver.

Foreign Keys

Foreign Key Field Type Null Notes Description
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID Foreign key to the constituent record.
SALESORDERITEMMEMBERSHIPID uniqueidentifier SALESORDERITEMMEMBERSHIP.ID The sales order item membership for this member record.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
MEMBERID uniqueidentifier yes MEMBER.ID Stores MEMBERID for members being renewed.

Indexes

Index Name Fields Unique Primary Clustered
IX_SALESORDERITEMMEMBER_CONSTITUENTID CONSTITUENTID
IX_SALESORDERITEMMEMBER_DATEADDED DATEADDED yes
IX_SALESORDERITEMMEMBER_DATECHANGED DATECHANGED
IX_SALESORDERITEMMEMBER_SALESORDERITEMMEMBERSHIPID SALESORDERITEMMEMBERSHIPID
PK_SALESORDERITEMMEMBER ID yes yes

Triggers

Trigger Name Description
TR_SALESORDERITEMMEMBER_AUDIT_UPDATE
TR_SALESORDERITEMMEMBER_AUDIT_DELETE

Referenced by

Referenced by Field
SALESORDERITEMMEMBERSHIPCARD SALESORDERITEMMEMBERID