Skip to content

Instantly share code, notes, and snippets.

@vreality64
Last active October 7, 2016 02:10
Show Gist options
  • Save vreality64/b439b8a2f3aa180494c3 to your computer and use it in GitHub Desktop.
Save vreality64/b439b8a2f3aa180494c3 to your computer and use it in GitHub Desktop.
Data Modeling of Sound Pancake
MidiObject: {
header : Object ( Midi Meta Data ),
tracks : List ( Event List )
}
Music: {
id : string ( DB Unique ID = userid + DBid ),
owner : string ( FB first name + last name ),
artist : string ( User Name in SoundPancake = midi file uploader name ),
title : string ( Composition Name ),
description : string ( Composition Description ),
playtime : integer ( Composition Time ),
like : integer ( the number of people liked this Composition ),
MidiFileId : string ( MidiFile Unique ID ),
albumArt : string ( Path of Album Art ),
data : Object ( MidiObject )
}
PlayList: [
{
id : string ( DB Unique ID ),
name : string ( Play List Name in SoundPancake decided by user ),
description : string ( Play List Description ),
publisher : string ( Play List Creator ),
publisherImage : string ( Play List Creator Profile Image ),
like : number ( the number of people liked this Play List ),
comment : number ( the number of people comments this Play List ),
share : string ( Sharing Link ),
musicList : Object List ( Music Object List )
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment