summaryrefslogtreecommitdiff
path: root/frontend/src/schemas/games.js
blob: 68d14fb4b56f8ff3b4be272d67ad5d53c3da77da (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