Skip to main content

matching_session

An append-only table of sessions

Primary Key:Checks:
  • matching_session_check - ((claim_member_id IS NULL) <> (member_seen_id IS NULL))
  • matching_session_check1 - (is_active = (session_end_reason IS NULL))
  • matching_session_check2 - (is_active = (ended_by_user_id IS NULL))
  • matching_session_check3 - ((session_end_reason <> 'Matched successfully'::claims.session_end_reason_type) OR ((selected_match_status IS NOT NULL) AND (selected_member_canonical_id IS NOT NULL) AND (created_member_canonical IS NOT NULL)))
Foreign Keys:Indexes:
ColumnData TypeNullableIndexedDescription
matching_session_idbigintNoYes-

Generated through expression: 
claim_member_idbigintYesYes-

Generated through expression: 
member_seen_idbigintYesYes-

Generated through expression: 
member_typemember_typeNoNo-

Generated through expression:  CASE WHEN (claim_member_id IS NOT NULL) THEN 'Claim'::claims.member_type ELSE 'Eligibility'::claims.member_type END
selected_match_statusmatch_status_typeYesNoThe match status selected in this session. During normal operation this is always set before a session ends but an admin can force a session to be ended.

Generated through expression: 
selected_member_canonical_idbigintYesNoThe canonical member selected in this session. During normal operation this is always set before a session ends but an admin can force a session to be ended.

Generated through expression: 
created_member_canonicalbooleanYesNoWhether the selected_member_canonical_id was created for this session.

Generated through expression: 
session_user_idbigintNoYes-

Generated through expression: 
session_begintimestamp with time zoneNoNo-

Generated through expression: 
session_endtimestamp with time zoneYesNo-

Generated through expression: 
session_end_reasonsession_end_reason_typeYesNoWhy this session was ended. NULL if the session has not yet been ended.

Generated through expression: 
ended_by_user_idbigintYesNoWho ended the session. NULL if the session has not yet been ended.

Generated through expression: 
is_activebooleanNoNo-

Generated through expression: (session_end IS NULL)