BATCHREVENUEAPPLICATIONMEMBERSHIP
Stores information about memberships records added during the revenue batch process.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
MEMBERSHIPID |
uniqueidentifier |
yes |
|
Indicates the membership to which a payment is being applied. |
NUMBEROFCHILDREN |
smallint |
|
Default = ((0)) |
The number of children allowed on this membership. |
COMMENTS |
nvarchar(1000) |
|
Default = '' |
Remarks about this membership. |
ISGIFT |
bit |
|
Default = 0 |
Denotes that this membership is a gift. |
SENDRENEWALCODE |
tinyint |
|
Default = 1 |
Specifies who to send renewals if this membership is a gift. |
SENDRENEWAL |
nvarchar(24) (Computed) |
yes |
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. |
GIVENBYID |
uniqueidentifier |
yes |
|
The constituent that is responsible for giving the membership as a gift. |
JOINDATE |
datetime |
yes |
|
The join date of this membership. |
EXPIRATIONDATE |
datetime |
yes |
|
The expiration date of this membership. |
LASTRENEWEDON |
datetime |
yes |
|
The date this membership was last renewed. |
STATUSCODE |
tinyint |
|
Default = 0 |
The status of the membership: 0 - Active, 2 - Pending |
STATUS |
nvarchar(7) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Active' WHEN 2 THEN N'Pending' END |
Provides a translation for the 'STATUSCODE' field. |
MEMBERS |
xml |
yes |
|
XML collection of members for this membership. |
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
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATEADDED |
DATEADDED |
|
|
yes |
IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATECHANGED |
DATECHANGED |
|
|
|
IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_GIVENBYID |
GIVENBYID |
|
|
|
PK_BATCHREVENUEAPPLICATIONMEMBERSHIP |
ID |
yes |
yes |
|
Triggers
Referenced by