-
Notifications
You must be signed in to change notification settings - Fork 2
Schema
Dillon Rice edited this page May 11, 2020
·
3 revisions
- displayName
- email - unique: true
- profilePicture
- passwordDigest
- games: [
- {gameId: objectId(something), owner: boolean } ]
- creatorId: object_id belonging to the user who created the game
- name: string that identifies the game
- description: some text that describes the game
- backgroundImage: url linking to an image that sits behind the board - like a table or something of that nature
- passwordDigest:
- players: [
- objectId(user) ]
- boards: [
- objectId(board) ]
- gameId: Object_id belonging to the game
- gidSize: {cols: num, rows: num}
- squareSize: {width: num, height: num, zoomFactor: num}
- tokens: [
- objectId(token) ]
- name: unique name for token
- pos: { x: num, y:num}
- size:
- userId: objectId(userId)
- creatorId: objectId(userId)
- boardId: objectId(boardId)