Skip to main content

Overview

Thought Industries' offers a single source of truth column in Redshift for tracking a record's state called “Status Group” (status_group). This column is a rollup of the various ways different tables reflect whether a given record is Active, Inactive, or Deleted.

status_group

ValuesValue DescriptionValue Logic
aRecord is considered activeAll statuses that are not inactive or deleted. Updated when status aligns to Active.
iRecord is considered inactiveEntities intentionally archived, disabled, or hidden from learners or admins.
dRecord was deletedEntities deleted by an admin or due to disassociation (e.g., user_license record).

status_group_updated_at

Value DescriptionValue Logic
Timestamp when the status_group was updated.Reflects any update made to the Status Group column.

Table and Column Mapping to Status Group

Table NameColumn NameActiveInactiveDeleted
assetsdeletedFALSETRUE
award_qualificationsdeletedTRUE
awardsdeletedTRUE
background_jobsstatuscomplete, completed, failed, processing, queued
bookmark_foldersdeletedTRUE
bookmarksdeletedTRUE
bundlesstatusdraft, publishedarchiveddeleted
campaign_emailsdeletedTRUE
campaignsdeletedTRUE
certificatesdeletedTRUE
clientsdeletedTRUE
clientsdisabledTRUE
companiesstatusactive, activeTrial, pendingCreation, pendingDeletion, pendingTermination, sandbox, terminationHold, terminationWait, trialCompleteddeleted
competency_assessmentsstatuspublishedarchiveddeleted
course_actionsdeletedTRUE
course_completion_criteriadeletedTRUE
course_groupsstatuspublishedarchived
coursesstatusdraft, pending, published, startedarchiveddeleted
credit_accountsstatusactivearchived
credit_batchesstatusactivearchived
discount_groupsstatusdraft, publishedarchiveddeleted
earned_badgesdeletedTRUE
learning_path_actionsdeletedTRUE
learning_pathsstatusdraft, publishedarchiveddeleted
linked_workbooksstatusfinished, starteddeleted
milestonesdeletedTRUE
pagesdeletedTRUE
pickable_groupsstatusdraft, publishedarchived
productsstatusdraft, publishedarchived
question_categoriesdeletedTRUE
questionsdeletedTRUE
quiz_attemptsstatusfinished, pending, started
sectionsstatusdraft, published
stripe_chargesstatusfailed, paid
stripe_disputesstatuscharge_refunded, lost, needs_response, under_review, won
stripe_invoicesstatusdraft, open, paid, uncollectible, void
stripe_refundsstatuscanceled, failed, pending, succeeded
tagsarchivedTRUE
user_allocated_contentsstatuscompleted, not-completedarchived
usersdisabledTRUE

Note: Hard delete tables will not have a seperate column beyond status_group -

  • users
  • forums
  • layouts
  • lessons
  • licenses
  • meetings
  • onboardingSurveys
  • redemptionCodeGroups
  • roles

Restrictions

  • This new data resides exclusively in Redshift and is unavailable via API.
  • Live ETL is required for status updates. If the ETL is down, updates may not be captured immediately.
We value your feedback!
Help us improve our documentation by sharing your thoughts. It only takes a few minutes and makes a big difference.
Share Feedback