Skip to content

Vote Schema

Daria Derecha edited this page May 24, 2020 · 1 revision

This schema represents the JSON data object associated with the notion of a vote:

userID: { type: String } - ID of a user submitting the vote trackURI: [{ type: String }] - URI of a track that the user voted for
playlistSessionID: { type: Schema.Types.ObjectId, ref: 'PlaylistSession' } - reference to the playlist the vote is associated with

Clone this wiki locally