Skip to content
Dillon Rice edited this page May 11, 2020 · 3 revisions

User

  • displayName
  • email - unique: true
  • profilePicture
  • passwordDigest
  • games: [
    • {gameId: objectId(something), owner: boolean } ]

Games

  • 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) ]

Board

  • gameId: Object_id belonging to the game
  • gidSize: {cols: num, rows: num}
  • squareSize: {width: num, height: num, zoomFactor: num}
  • tokens: [
    • objectId(token) ]

Tokens

  • name: unique name for token
  • pos: { x: num, y:num}
  • size:
  • userId: objectId(userId)
  • creatorId: objectId(userId)
  • boardId: objectId(boardId)

Clone this wiki locally