summaryrefslogtreecommitdiff
path: root/frontend/src/schemas/games.js
blob: 9c9681dae180078d36f2d0422ec550857d0605fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { schema } from "normalizr";

const player = new schema.Entity(
  "players",
  {},
  {
    idAttribute: "username"
  }
);

export const game = new schema.Entity("games", {
  players: [player]
});

export const gameList = [game];
bgstack15