BATCHMEMBERSHIP (4.0SP14)

Stores membership batch information.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHID

uniqueidentifier

false

FK to BATCH

MEMBERSHIPPROGRAMID

uniqueidentifier

false

FK to MEMBERSHIPPROGRAM

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

SEQUENCE

int

false

0

COMMENTS

nvarchar(1000)

false

''

STATUSCODE

tinyint

false

0

0=Active, 2=Pending

STATUS

nvarchar(7) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

SENDRENEWALCODE

tinyint

false

1

0=Giver, 1=Primary member, 2=Giver and primary member

SENDRENEWAL

nvarchar(24) (Computed)

true

Provides a translation for the 'SENDRENEWALCODE' field.

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_BATCHMEMBERSHIP_DATEADDED

DATEADDED

False

False

True

IX_BATCHMEMBERSHIP_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHMEMBERSHIP

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHMEMBERSHIP_AUDIT_UPDATE

TR_BATCHMEMBERSHIP_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHMEMBERSHIPBATCHSYSTEMMESSAGES

BATCHMEMBERSHIPID

BATCHMEMBERSHIPBATCHUSERMESSAGE

ID

BATCHMEMBERSHIPMEMBER

BATCHMEMBERSHIPID

BATCHMEMBERSHIPTRANSACTION

BATCHMEMBERSHIPID