-
-
Save azhang/5278983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://docs.mongodb.org/manual/tutorial/model-tree-structures-with-ancestors-array/ | |
{ | |
"_id" : id, | |
"createdAt" : created_date, | |
"modifiedAt" : modified_date, | |
"accessedAt" : accessed_date, | |
"name" : name, | |
"description" : description, | |
"owner": owner._id, | |
"assignedTo" : user._id, | |
"following" : [ | |
user1._id, | |
user2._id, | |
user3._id | |
], | |
"due" : due_date, | |
"file" : file_url or gridfs id, // includes pictures | |
"related" : [ | |
// array of ids for related (but not immediately related) tasks/projects | |
], | |
"ancestors" : [ | |
// array of ancestors ids | |
], | |
"parent" : id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment