You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Management Backend - Data Schema(for Cognito)
A document describing different datasets their key/values that need to exist to support content personalization for SSO users. Any references to JSON, ints, booleans, etc., imply serialization to a string value. The values LastModifiedDate and DeviceLastModifiedDate are implicit for every key/value pair.
Favorites
Stores a user's preferences for favorite entities (programs, topics, etc.)
key
string
an object defining the entity that the user has favorited (e.g. prog_kpcc-1 would be the object key for AirTalk
value
boolean
Whether or not a user considers the program to be a favorite(since keys themselves cannot be deleted). This could possibly be expanded to a JSON value if we need to store more meta_data.
Queue
Stores a list for the user to organize content they want to save for later. In other words, these are items that the user has yet to consume.
key
string
An object key defining the piece of content (this is likely using the ContentBase object key concept in SCPRv4)
value
JSON
Metadata for the queue item.
Metadata
obj_title
string
A user-friendly title for the piece of content in the history, usually an article's headline
obj_url
string
A public URL for where this resource can be accessed on the web
content_type
string
A value (either "read" or "listen") that represents the type of content the user is saving in their queue
History
Stores individual items of content that a user has consumed using KPCC products.
key
string
An object key defining the piece of content that is added to the user’s history (this is likely using the ContentBase object key concept in SCPRv4)
value
JSON
Metadata for the queue item.
Metadata
obj_title
string
A user-friendly title for the piece of content in the history, usually an article's headline
obj_url
string
A public URL for where this resource can be accessed on the web
obj_state
int
The bookmark where a user left off in a piece of audio, represented (possibly as a duration in seconds for on-demand audio, and as a datetime or unix timestamp for the live stream)
content_type
string
A value (either "read" or "listen") that represents the type of content the user is saving in their queue
completed
boolean
True if the user has completed listening to the audio. Defaults to false.
Settings
Keeps general user settings. An example setting could be 'queue_size' => 3.
Thought: Episode display data("title", "description", "url", etc.) could be its own separate dataset; that way we can ask for title changes(for example) from the API, and those changes would be reflected in episodes that are in both the queue and the history.
Thought: Episode display data("title", "description", "url", etc.) could be its own separate dataset; that way we can ask for title changes(for example) from the API, and those changes would be reflected in episodes that are in both the queue and the history.