DAILYSALEITEMMEMBERSHIP (4.0SP17)

Holds data relative to a daily sale membership.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MEMBERSHIPPROGRAMID

uniqueidentifier

false

The ID of the membership for this daily sale item.

MEMBERSHIPLEVELID

uniqueidentifier

false

The ID of the membership level.

MEMBERSHIPLEVELTERMID

uniqueidentifier

false

The ID of the membership level term.

MEMBERSHIPLEVELTYPECODEID

uniqueidentifier

true

The type of membership.

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_DAILYSALEITEMMEMBERSHIP_DATEADDED

DATEADDED

False

False

True

IX_DAILYSALEITEMMEMBERSHIP_DATECHANGED

DATECHANGED

False

False

False

PK_DAILYSALEITEMMEMBERSHIP

ID

True

True

False

Triggers
Trigger Name Description

TR_DAILYSALEITEMMEMBERSHIP_AUDIT_UPDATE

TR_DAILYSALEITEMMEMBERSHIP_AUDIT_DELETE