Skip to content
Sean McGeer edited this page May 23, 2014 · 5 revisions

#Strat

{
    “_id”: “id”, //UNIQUE (just default mongo _id)
    “stratName” : “name”, //UNIQUE BASED ON OWNER
    “displayName” : “editable display name for a strat”,
    “owner” : {“cat”: “user”, //“org” or “user”
    “name”:”name”},
    “desc”: “description”,
    “map”: map _id
    “root”: “_id of root frame” //UNIQUE
}

#Frame

{
    “_id”: “id”, //UNIQUE (just default mongo _id)
    “desc”: “description”,
    “event”: {“desc”: “description”,
                “icon”: “link to icon”} //icons stored in /public/icons/icon.png
    “elem”: {}, //Associative array of elements (shapes)
    “parent”: “_id of parent”,
    “children”: [“_id”, “_id”, “_id”], //List of children 
    “editors”: [“user”, “user”, “user”], //List of users currently editing this frame.  Listed by name.
    “strat”: “id of parent strategy”
}

#User

{
    “steamID”: “steam ID”, //UNIQUE
    “name”: “username”,  //UNIQUE
    “displayName”: “editable display name”
}

#Org

{
    “name”: “organization name”, //UNIQUE
    “admins”: [“user”, “user”, “user”], //List of admins in this organization.  Listed by name.  Admins automatically have edit rights.
    “editors”: [“user”, “user”, “user”] //List of users who have edit rights on this organization.  Listed by name.
}

Clone this wiki locally