Ver Fonte

Updated schema.json. Merged station and added user schema.

KrisVos130 há 7 anos atrás
pai
commit
64865de4b8
1 ficheiros alterados com 117 adições e 0 exclusões
  1. 117 0
      schema.json

+ 117 - 0
schema.json

@@ -0,0 +1,117 @@
+[
+  // Station
+  {
+    "id": "edm",
+    "type": "official",
+    "displayName": "EDM",
+    "description": "EDM Music",
+    "privacy": "private",
+    "paused": true,
+    "currentSong": {
+      "startedAt": 1472926465,
+      "id": "dQw4w9WgXcQ",
+      "title": "Never Gonna Give You Up",
+      "artists": ["Rick Astley"],
+      "duration": 254.21,
+      "skipDuration": 0.0,
+      "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
+      "likes": 4,
+      "dislikes": 100,
+      "genres": ["edm"]
+    },
+    "timePaused": 0,
+    "playlist": "playlistId",
+    "genres": ["edm"],
+    "whitelist": ["UserId"],
+    "partyMode": true,
+    "queueLocked": true,
+    "owner": "UserId"
+  },
+  // Queue Item
+  {
+    "id": "dQw4w9WgXcQ",
+    "title": "Never Gonna Give You Up",
+    "artists": ["Rick Astley"],
+    "duration": 254.21,
+    "skipDuration": 0.0,
+    "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
+    "genres": ["edm"]
+  },
+  // Song Item
+  {
+    "id": "dQw4w9WgXcQ",
+    "title": "Never Gonna Give You Up",
+    "artists": ["Rick Astley"],
+    "duration": 254.21,
+    "skipDuration": 0.0,
+    "image": "https://upload.wikimedia.org/wikipedia/en/3/34/RickAstleyNeverGonnaGiveYouUp7InchSingleCover.jpg",
+    "genres": ["edm"],
+    "likes": 13,
+    "dislikes": 1
+  },
+  // Playlist
+  {
+    "id": "defaultRethinkId",
+    "songs": [
+      "dQw4w9WgXcQ"
+    ],
+    "genres": ["edm"]
+  },
+  // Private Playlist
+  {
+    "id": "defaultRethinkId",
+    "name": "nostalgia",
+    "displayName": "Nostalgia",
+    "owner": "UserId",
+    "songs": [
+      "dQw4w9WgXcQ", //If a song is in the Song table,
+      {//If a song is not in the Song table
+        "id": "dQw4w9WgXcQ",
+        "title": "Rick Astley - Never gonna give you up",
+        "duration": 254.21
+      }
+    ]
+  },
+  // User
+  {
+    "id": "kF9u3jf9eu3nf84rh47gf7474gf",
+    "username": "KrisVos130",
+    "email": {
+      "verified": false,
+      "verificationToken": "d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2d83ejd9u93urjf87j8fj49f2",
+      "address": "krisvos130@gmail.com"
+    },
+    "services": {
+      "password": {
+        // Token
+      },
+      "github": {
+        // Token
+      },
+      "discord": {
+        // Token
+      }
+    },
+    "ban": {
+      "banned": true,
+      "reason": "Spamming",
+      "bannedAt": 1472926465,
+      "bannedUntil": 1472926466
+    },
+    "mute": {
+      "muted": true,
+      "reason": "Spamming",
+      "mutedAt": 1472926465,
+      "mutedUntil": 1472926466
+    },
+    "2fa": {
+      "enabled": true
+      //Token and such
+    },
+    "statistics": {
+      "songsRequested": 34,
+      "songsAccepted": 23
+    },
+    "createdAt": 1472926465
+  }
+]