Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ADDONTYPECODE tinyint   Default = 0 Specifies the type of add-ons: additional member or guest.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 ADDONTYPE nvarchar(17) (Computed) CASE [ADDONTYPECODE] WHEN 0 THEN N'Benefit' WHEN 1 THEN N'Additional member' END

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   SALESORDERITEM.ID Primary Key.
 MEMBERSHIPID uniqueidentifier MEMBERSHIP.ID The membership ID that add-on is associated to.
 SALESORDERITEMMEMBERSHIPID uniqueidentifier SALESORDERITEMMEMBERSHIP.ID The sales order item membership ID that add-on is associated to.
 MEMBERSHIPTRANSACTIONID uniqueidentifier MEMBERSHIPTRANSACTION.ID FK to MEMBERSHIPTRANSACTION table
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 ADDONID uniqueidentifier ADDON.ID
 MEMBERSHIPADDONID uniqueidentifier MEMBERSHIPADDON.ID

Index Name Field(s) Unique Primary Clustered
 IX_SALESORDERITEMMEMBERSHIPADDON_DATEADDED DATEADDED    
 IX_SALESORDERITEMMEMBERSHIPADDON_DATECHANGED DATECHANGED      
 PK_SALESORDERITEMMEMBERSHIPADDON ID  

Trigger Name Description
 TR_SALESORDERITEMMEMBERSHIPADDON_AUDIT_UPDATE
 TR_SALESORDERITEMMEMBERSHIPADDON_AUDIT_DELETE

Entity-Relationship diagram of this table