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/worksheet 
    assessment_name: text // Name of the assessment/content/worksheet
    question: jsonb // array[objects] // Question details spec object
    datetimedate_time: timestamp // Time stamp, To know last updated time.
    PRIMARY KEY (batch_id,  user_id, course_id, assessment_id)
)

...

  1. How to capture the attempts? i.e. Number of times the particular user is attempted particular question. 
  2. How to capture the batch-id and course-id



Conclusion: