VOLUNTEERMEDICAL (4.0SP20)

Medical information for a volunteer.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

VOLUNTEERID

uniqueidentifier

false

FK to CONSTITUENT

MEDICALCODEID

uniqueidentifier

false

FK to VOLUNTEERMEDICALCODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

EXPIRESON

datetime

true

VERIFIED

bit

false

0

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_VOLUNTEERMEDICAL_DATEADDED

DATEADDED

False

False

True

IX_VOLUNTEERMEDICAL_DATECHANGED

DATECHANGED

False

False

False

PK_VOLUNTEERMEDICAL

ID

True

True

False

UIX_VOLUNTEERMEDICAL_VOLUNTEERID_MEDICALCODEID

VOLUNTEERID

MEDICALCODEID

True

False

False

Triggers
Trigger Name Description

TR_VOLUNTEERMEDICAL_AUDIT_UPDATE

TR_VOLUNTEERMEDICAL_AUDIT_DELETE