Skip to content

Instantly share code, notes, and snippets.

@jda0
Created April 24, 2015 09:35
Show Gist options
  • Save jda0/d4015edcb3b3d1433f58 to your computer and use it in GitHub Desktop.
Save jda0/d4015edcb3b3d1433f58 to your computer and use it in GitHub Desktop.
# DATA
## USER
email KEY string
name string
elevated boolean
auth string -> USER.email
key string
expires date
## PERSON
_id KEY string
name string
section string -> SECTION.name
## REPORT
_id KEY string
personID string -> PERSON._id
date date
nom bool
tag string <['serious', 'concern', 'praise', null]>
score int
body string
userID string -> USER.email
authID string -> USER.email
## EVENT
_id KEY string
date date
activity string
sectionResults string -> EVENT_SECTION_RESULT._id
scores string -> EVENT_SCORE._id
## EVENT_SECTION_RESULT
_id KEY string
section string -> SECTION.name
score int
## EVENT_SCORE
_id KEY string
personID string -> PERSON._id
score int
## SECTION
name KEY string
color string
## MVP
month KEY int YY * 12 + MM
personID string -> PERSON._id
# FORMS
## /getkey
<logo> | email: __________
[get key]
## /register
<logo> | email: _disabled_
name: __________
elevated: [X]
[register]
## /login
<logo> | key: __________
[login]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment