Skip to content

Instantly share code, notes, and snippets.

@DouglasHennrich
Last active December 19, 2015 05:20
Show Gist options
  • Save DouglasHennrich/72af52a400d450c41602 to your computer and use it in GitHub Desktop.
Save DouglasHennrich/72af52a400d450c41602 to your computer and use it in GitHub Desktop.
user = {
name: String
, bio: String
, date_register: Date
, avatar_path: String
, auth: {
usenrame: String
, email: String
, password: String
, last_access: Date
, online: Boolean
, disabled: Boolean
, hash_token: String
}
, projects: [
{
project_id : ObjectId
, project_name : String
}
]
};
project = {
name: String
, description: String
, date_begin: Date
, date_dream: Date
, date_end: Date
, visible: Boolean
, realocate: Boolean
, expired: Boolean
, visualizable_mod: Boolean
, tags: [ ]
, members: [
{
type: Number
, user_name: String
, user_id: ObjectId
, user_notify: Boolean
}
]
, goals: [
{
name: String
, description: String
, date_begin: Date
, date_dream: Date
, date_end: Date
, realocate: Boolean
, expired: Boolean
, tags: [ ]
, historic: [
{
date_realocate: Date
}
]
, activity: [
{
activity_id: ObjectId
, name: String
}
]
}
]
};
activity = {
name: String
, description: String
, date_begin: Date
, date_dream: Date
, date_end: Date
, realocate: Boolean
, expired: Boolean
, commets: [
{
text: String
, date_comment: Date
, user_id: ObjectId
, user_name: String
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment