diff options
Diffstat (limited to 'frontend/src/schemas')
-rw-r--r-- | frontend/src/schemas/games.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontend/src/schemas/games.js b/frontend/src/schemas/games.js new file mode 100644 index 00000000..180c9e69 --- /dev/null +++ b/frontend/src/schemas/games.js @@ -0,0 +1,11 @@ +import { schema } from 'normalizr' + +const player = new schema.Entity('players', {}, { + idAttribute: 'username' +}) + +const game = new schema.Entity('games', { + players: [ player ] +}) + +export default [ game ] |