Skip to content

Instantly share code, notes, and snippets.

@jasongonzales23
Last active September 10, 2017 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongonzales23/6959a6bc02cd3fe41a6b1d6711dcbb8a to your computer and use it in GitHub Desktop.
Save jasongonzales23/6959a6bc02cd3fe41a6b1d6711dcbb8a to your computer and use it in GitHub Desktop.
expense tracker data model
users: {
id: "UUID",
email: "string",
firstName: "string",
lastName: "string",
group: groupId
}
groups: {
id: "UUID",
members: [
...userIds,
]
}
expenses: {
id: "UUID",
associatedGroup: "groupId",
createdBy: "userID",
createdAtDate: "dateString",
amount: float,
description: "string"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment