Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeFadeToGrey
titleHistory table schema
linenumberstrue
CREATE TABLE assessment_histroy(
    batch_id: text // Batch identifier.
    user_id: text, // User Identifier.
    attempt_id: index, // Question Attempt identifier, To track the number of attempts on that question.
    course_id: text, // Course Identifier.
    assessment_id: text // Identifier of the assessment/content 
    assessment_name: text // Name of the assessment
    content_id: text, // Content Identifier/content
    question: jsonb // array[objects] // Question details spec object
    datetime: timestamp // Time stamp, To know last updated time.
    PRIMARY KEY (batch_id,  user_id, contentcourse_id, assessment_id)
)


Question object :

...