Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
smallint | Default = ((0)) | The number of children allowed on this membership. | |
![]() |
nvarchar(1000) | Default = '' | Remarks about this membership. | |
![]() |
bit | Default = 0 | Denotes that this membership is a gift. | |
![]() |
tinyint | Default = 1 | Specifies who to send renewals if this membership is a gift. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was added. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
![]() |
timestamp | Timestamp. | ||
![]() |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
![]() |
datetime | ![]() |
The expiration date of this membership. | |
![]() |
nvarchar(24) (Computed) | ![]() |
CASE [SENDRENEWALCODE] WHEN 0 THEN N'Giver' WHEN 1 THEN N'Primary member' WHEN 2 THEN N'Giver and primary member' END | Provides a translation for the 'SENDRENEWALCODE' field. |
![]() |
nvarchar(100) | Default = '' | Name of membership program at time of sale. | |
![]() |
tinyint | Default = 1 | Membership item type code. | |
![]() |
nvarchar(15) (Computed) | ![]() |
CASE [TYPECODE] WHEN 1 THEN N'Membership' WHEN 250 THEN N'Midterm upgrade' END | Provides a translation for the 'TYPECODE' field. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | SALESORDERITEM.ID | Primary Key. | |
![]() |
uniqueidentifier | ![]() |
MEMBERSHIP.ID | The membership ID for rejoins and renews. |
![]() |
uniqueidentifier | MEMBERSHIPPROGRAM.ID | The membership program of this record. | |
![]() |
uniqueidentifier | MEMBERSHIPLEVEL.ID | The membership level of this record. | |
![]() |
uniqueidentifier | MEMBERSHIPLEVELTERM.ID | The membership level term of this record. | |
![]() |
uniqueidentifier | ![]() |
MEMBERSHIPLEVELTYPECODE.ID | The type of membership. |
![]() |
uniqueidentifier | ![]() |
CONSTITUENT.LOCALID | The constituent that is responsible for giving the membership as a gift. |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | ![]() |
MEMBERSHIPTRANSACTION.ID | FK to MEMBERSHIPTRANSACTION table |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
GIVENBYID | |||
![]() |
ID | ![]() |
![]() |
|
![]() |
MEMBERSHIPTRANSACTIONID | ![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |
Referenced by | Field |
---|---|
![]() |
SALESORDERITEMMEMBERSHIPID |
![]() |
SALESORDERITEMMEMBERSHIPID |