Piaer

Database Structure - Champions

Apr 21st, 2020
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.96 KB | None | 0 0
  1. var Champions = new Schema({
  2.   _id: ObjectId,
  3.   Champion name: String,
  4.   Lane Type: [String],
  5.   Counters: [{
  6.     lane: String,
  7.     Countered by: String,
  8.     Counter rate: Number
  9.   }],
  10.   Synergies: [{
  11.     lane: String,
  12.     Countered by: String,
  13.     Counter rate: Number
  14.   }]
  15.   });
  16.  
  17.  
  18. Przykład:
  19.   _id: e96fae10e2f0042a4d00478,
  20.   Champion name: "Brand",
  21.   Lane Type: ["Middle", "Support"],
  22.   Counters: [{
  23.       lane: "Middle",
  24.       Countered by: "Cho'Gath",
  25.       Counter rate: 90 %
  26.     }, {
  27.       lane: "Middle",
  28.       Countered by: "Aatrox",
  29.       Counter rate: 80 %
  30.     }, {
  31.       lane: "Support",
  32.       Countered by: "Nautilus",
  33.       Counter rate: 90 %
  34.     }, {
  35.       lane: "Support",
  36.       Countered by: "Soraka",
  37.       Counter rate: 90 %
  38.     },],
  39.   Synergies: [{
  40.       lane: "Middle",
  41.       Countered by: "Amumu",
  42.       Counter rate: 90 %
  43.     }, {
  44.       lane: "Support",
  45.       Countered by: "Ashe",
  46.       Counter rate: 80 %
  47.     }
Advertisement
Add Comment
Please, Sign In to add comment