schema.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. [
  2. // Station
  3. {
  4. "_id": "edm",
  5. "type": "official",
  6. "displayName": "EDM",
  7. "description": "EDM Music",
  8. "privacy": "private",
  9. "paused": true,
  10. "currentSong": {
  11. "startedAt": 1472926465,
  12. "id": "dQw4w9WgXcQ",
  13. "title": "Never Gonna Give You Up",
  14. "artists": ["Rick Astley"],
  15. "duration": 254.21,
  16. "skipDuration": 0.0,
  17. "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
  18. "likes": 4,
  19. "dislikes": 100,
  20. "genres": ["edm"]
  21. },
  22. "timePaused": 0,
  23. "playlist": "playlistId",
  24. "genres": ["edm"],
  25. "whitelist": ["UserId"],
  26. "partyMode": true,
  27. "queueLocked": true,
  28. "owner": "UserId"
  29. },
  30. // Queue Item
  31. {
  32. "id": "dQw4w9WgXcQ",
  33. "title": "Never Gonna Give You Up",
  34. "artists": ["Rick Astley"],
  35. "duration": 254.21,
  36. "skipDuration": 0.0,
  37. "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
  38. "genres": ["edm"]
  39. },
  40. // Song Item
  41. {
  42. "id": "dQw4w9WgXcQ",
  43. "title": "Never Gonna Give You Up",
  44. "artists": ["Rick Astley"],
  45. "duration": 254.21,
  46. "skipDuration": 0.0,
  47. "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
  48. "genres": ["edm"],
  49. "likes": 13,
  50. "dislikes": 1
  51. },
  52. // Playlist
  53. {
  54. "id": "defaultRethinkId",
  55. "songs": [
  56. "dQw4w9WgXcQ"
  57. ],
  58. "genres": ["edm"]
  59. },
  60. // Private Playlist
  61. {
  62. "id": "defaultRethinkId",
  63. "name": "nostalgia",
  64. "displayName": "Nostalgia",
  65. "owner": "UserId",
  66. "songs": [
  67. "dQw4w9WgXcQ", //If a song is in the Song table,
  68. {//If a song is not in the Song table
  69. "id": "dQw4w9WgXcQ",
  70. "title": "Rick Astley - Never gonna give you up",
  71. "duration": 254.21
  72. }
  73. ]
  74. },
  75. // User
  76. {
  77. "id": "kF9u3jf9eu3nf84rh47gf7474gf",
  78. "username": "KrisVos130",
  79. "email": {
  80. "verified": false,
  81. "verificationToken": "d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2",
  82. "address": "krisvos130@gmail.com"
  83. },
  84. "services": {
  85. "password": {
  86. // Token
  87. },
  88. "github": {
  89. // Token
  90. },
  91. "discord": {
  92. // Token
  93. }
  94. },
  95. "ban": {
  96. "banned": true,
  97. "reason": "Spamming",
  98. "bannedAt": 1472926465,
  99. "bannedUntil": 1472926466
  100. },
  101. "mute": {
  102. "muted": true,
  103. "reason": "Spamming",
  104. "mutedAt": 1472926465,
  105. "mutedUntil": 1472926466
  106. },
  107. "2fa": {
  108. "enabled": true
  109. //Token and such
  110. },
  111. "statistics": {
  112. "songsRequested": 34,
  113. "songsAccepted": 23
  114. },
  115. "createdAt": 1472926465
  116. }
  117. ]