Last active
September 27, 2016 19:17
-
-
Save suissa/18c11d0cb577fb5c112a535e4c0b9c80 to your computer and use it in GitHub Desktop.
Model for mongodb
This file contains hidden or 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
users: [ | |
{ | |
nick: String, | |
thumb: String | |
} | |
] | |
messages: [ | |
{ | |
sender: String, // users_id | |
receiver: [ | |
{ users: [ | |
String, // users_id | |
] | |
} | |
group: [ | |
String, // groups_id | |
] | |
} | |
], | |
content: String, | |
files: String, // files_id | |
sent: Date | |
} | |
] | |
groups: [ | |
{ | |
name: String, | |
description: String, | |
thumb: String, | |
link: String, | |
visibility: String, | |
admins: [ | |
String | |
], | |
members: [ | |
String // users_id | |
], | |
blocks: [ | |
String // users_id | |
], | |
created_at: Date | |
} | |
] | |
files: [ | |
{ | |
name: String, | |
path: String, | |
type: String, | |
sender: String, // users_is | |
uploaded_at: Date | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment