Skip to content

Instantly share code, notes, and snippets.

@EllieJellyBean
Last active July 17, 2021 16:48
Show Gist options
  • Select an option

  • Save EllieJellyBean/5b35339a58318d33534b33e9fb7ef3e8 to your computer and use it in GitHub Desktop.

Select an option

Save EllieJellyBean/5b35339a58318d33534b33e9fb7ef3e8 to your computer and use it in GitHub Desktop.
Pet Name Finder Data Examples

Packs:

[
   {
      id: #,
      name: "Team's New Fish",
      owner: userID#,
      users: [ { userId: int, likedNames: [ "string", "string" ], currentIndex: int } ] ,
   },
   {
      id: #,
      name: "Zach's Cat",
      owner: userID#,
      users: [ { userId: int, [ "string", "string" ], currentIndex: int } ] ,
   },
]

Users:

[
  {
    email: something@gmail.com,
    id: 12314,
    likedNames: [ "string", "string" ],
    packs:[ int, int ]
  },
  {
    email: somethingelse@gmail.com,
    id: 12315,
    likedNames: [ "string", "string" ],
    packs:[ int, int ]
  }
]

Names:

[
   {
      id: int,
      name: "Spinach"
   },
   {
     id: int
     name: "Daug"
   }
]
@gitkseniya
Copy link

Packs:

[
   {
      id: #,
      name: "Team's New Fish",
      owner: userID#,
      animal_type: "cat"
      animal_gender "female"
      packUsers: [ { userId:#, likedNames: [] } ] ,
   },
   {
      id: #,
      name: "Zach's Cat",
      owner: userID#,
      animal_type: "dog"
      animal_gender: "male"
      packUsers: [ { userId:#, likedNames: [] } ] ,
   },
]

Users:

[
  {
    email: something@gmail.com,
    id: 12314,
    likedNames: [ "string", "string" ],
    userPacks:[ packId# ]
  },
  {
    email: somethingelse@gmail.com,
    id: 12315,
    likedNames: [ "string", "string" ],
    userPacks:[ packId# ]
  }
]

Names:

[
   {
      name: "Spinach",
   },
   {
     name: "Daug",
   }
]

@brueck1988
Copy link

Backend will send us

{
packid: int,
userID: int,
likedNames: [nameID: int, nameID: int],
currentIndex, int
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment