Versions Compared

Key

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

...

User

Accessing Content

Table - user_content_consumption

A

  • class-1-maths (Collection)

    • single-digit-addition (Content)

<By enrolling to Collection>

  • userId: A

  • collectionId: class-1-maths

  • batchId: class-1-maths

  • contentId: single-digit-addition

A

  • single-digit-addition (Content)

<By using platform search>

  • userId: A

  • collectionId: single-digit-addition

  • batchId: single-digit-addition

  • contentId: single-digit-addition

Use Case

Write Request

Read Request(Condition)

1

user consuming individual content by program search

{

“userid”: <<userid>>,

“contentid” : <<contentid>>

}

userid='<<userid>>' and contentid ='<<contentid>>' and courseid ='<<contentid>>' and batchid ='<<contentid>>'

2

user consuming content by enrolling to collection through batch

{

“userid”: <<userid>>,

“contentid” : <<contentid>>

“collectionid” : <<courseid>>

“batchid” : <<batchid>>

}

userid='<<userid>>' and contentid='<<contentid>>' and courseid ='<<courseid>>' and batchid ='<<batchid>>'

3

user consuming content which can be carried forward by enrolling to collection through program

{

“userid”: <<userid>>,

“contentid” : <<contentid>>

}

userid='<<userid>>' and contentid='<<contentid>>' and courseid ='<<courseid>>' and batchid ='<<programid>>'

4

user consuming content which cannot be carried forward by enrolling to collection through program

{

“userid”: <<userid>>,

“contentid” : <<contentid>>

“collectionid” : <<courseid>>

“batchid” : <<programid>>

}

userid='<<userid>>' and contentid='<<contentid>>' and courseid ='<<courseid>>' and batchid ='<<programid>>'

Content View Lifecycle:

When the user view the content in context of a collection and batch, for the first time its start, progress update and end triggers are processed. Revisit (2nd - nth view) of the content will be ignored to process and update the DB.

...