-
Notifications
You must be signed in to change notification settings - Fork 0
Home
lvidarte edited this page Aug 6, 2012
·
12 revisions
Docs
{
_id : ObjectId,
tid : int,
data : json,
user : str,
public: bool,
}
Users
{
_id : ObjectId,
user : str,
name : str,
pub_keys: {}, # { name1: 'key1', name2: 'key2' }
last_tid: int,
}
Sessions
{
_id : ObjectId,
user : str,
expire: Datetime,
}
Docs
{
id : int,
sid : str,
tid : int,
user : str,
data : Data, # {content: str, help: str}
public: bool,
synced: bool,
}
{
user : str,
key_name : str,
session_id: str,
process : str, # ['update', 'commit', 'search', 'get']
value : str or int,
last_tid : int,
docs : [],
error : str,
}