Skip to content

Instantly share code, notes, and snippets.

@yedi
Created February 12, 2012 04:57
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 yedi/1806444 to your computer and use it in GitHub Desktop.
Save yedi/1806444 to your computer and use it in GitHub Desktop.
mongokit document
class User(Document):
__collection__ = 'users'
structure = {
'name': unicode,
'email': unicode,
'password': unicode,
'date_registered': datetime,
'acc_activated': bool,
'votes': [{
"rel": ObjectId,
"is_upvote": bool
}],
'item': ObjectId
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment