Guest User

Untitled

a guest
Oct 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   _id: new MongoId(),
  3.   type: int,
  4.   order_number: int,
  5.   doc: {
  6.     _id: MongoId
  7.   },
  8.   sender: {
  9.     user_id: id,
  10.     folder_id: int,
  11.     dates: {
  12.       added: timestamp with timezone,
  13.       sent: timestamp with timezone,
  14.       deleted: timestamp with timezone
  15.     },
  16.     send_copy: bool
  17.   },
  18.   recipient: {
  19.     user_id: int,
  20.     office_id: int,
  21.     bussines_id: int,
  22.     folder_id: int,
  23.     dates: {
  24.       read: timestamp with timezone,
  25.       deleted: timestamp with timezone
  26.     },
  27.     include_protocol: bool
  28.   },
  29.   is_self_note : string,
  30.   subject : string,
  31.   content : text,
  32.   attachments {        // прикрепленные файлы
  33.     {
  34.       binary_file: MongoBinary,
  35.       filename: string,
  36.       deleted: bool
  37.     }
  38.   }
  39. }
Add Comment
Please, Sign In to add comment