Source

openju / dbstructure.py

from pymongo.objectid import ObjectId

users = {
    '_id': None, # jid
    'nick': None,
    }

messages = {
    '_id': None,
    'jid': None,
    'message': None,
    'r_id': ObjectId, # reply id, not required
    
    'hrid': int(0), # %(hrid)s/%(reply_no)s is the message that will be used
    'r_no': int(0), # reply number, not required
    
    'dt': None, # date posted
    }