Skip to main content

Rocket.Chat DB schema

_raix_push_notifications
avatars.chunks
avatars.files
instances
meteor_accounts_loginServiceConfiguration
meteor_oauth_pendingCredentials
meteor_oauth_pendingRequestTokens
migrations
rocketchat__trash
rocketchat_cron_history
rocketchat_custom_emoji
rocketchat_custom_sounds
rocketchat_import
rocketchat_integration_history
rocketchat_integrations
rocketchat_livechat_custom_field
rocketchat_livechat_department
rocketchat_livechat_department_agents
rocketchat_livechat_external_message
rocketchat_livechat_inquiry
rocketchat_livechat_office_hour
rocketchat_livechat_page_visited
rocketchat_livechat_trigger
rocketchat_message
rocketchat_oauth_apps
rocketchat_oembed_cache
rocketchat_permissions
rocketchat_raw_imports
rocketchat_reports
rocketchat_roles
rocketchat_room
rocketchat_settings
rocketchat_smarsh_history
rocketchat_statistics
rocketchat_subscription
rocketchat_uploads
system.indexes
users
usersSessions

https://rocket.chat/docs/developer-guides/schema-definition

Rooms

{
  "_id": "22nytdn4QqKvSk2Av",              // Random.id()
  "t": "p",                                // String           Room Type: c = chanel, d = direct, p (change to g) = group, v = visitor
  "ts": new Date(1432937851208),           // Date             Room Creation Timestamp
  "name": "general",                       // String           Room Name (t:d -> empty)
  "lm": new Date(1432937851208),           // Date             Last Message Timestamp
  "msgs": 2345,                            // Integer          Messages Counter
  "cl": true,                              // Boolean          If users can leave room
  "ro": false,                             // Boolean          Read Only
  "usernames": [                           // Array(String)    Room Users
      "username1",                         // String           User Username
      "username2",
      "username3"
  ],
  "u": {                                   // Object           Owner User
    "_id": "CABrXSHpDqbZXGkYR",            // Random.id()      User Id
    "username": "john"                     // String           User Username
  }
}

Fields Type Description
_id Random.id() Room Id
t String Room Type
ts Date Room Creation Timestamp
name String Room Name (t:d -> empty)
lm Date Last Message Timestamp
msgs Integer Messages Counter
cl Boolean If users can leave room
ro     Boolean Read Only
usernames Array[String] Room Users
usernames.0 String User Username
u Object Owner User
u._id Random.id() User Id
u.username String User Username

Rocketchat_message

{
 "_id" : "sjiKhSfcxLDr6wQBZ",
"t" : "uj",
"rid" : "GENERAL",
 "ts" : ISODate("2017-05-09T06:10:49.050Z"),
"msg" : "woody_island",
"u" : { "_id" : "HgB3DB25uwbL4BS2D", "username" : "woody_island" },
"groupable" : false,
"_updatedAt" : ISODate("2017-05-09T06:10:49.050Z")
}

Fields:                       Type                 Description
_id
t
rid
ts
msg
u
groupable
_updatedAt

Users

{
    "_id" : "HgB3DB25uwbL4BS2D",
    "createdAt" : ISODate("2017-05-09T05:48:42.400Z"),
    "services" : {
         "password" : {
               "bcrypt" : "$2a$10$tcIus/rFIp0I3opQgSshfeIjq0H9jT59Gr.vg/nnRGoNZHZcdpIAi"  
          },
     "email" : {
          "verificationTokens" : [ {
               "token" : "mgBoYoXriJuTKsfjylQld5PonmVADqb8LFxXA9Hx9FL",
               "address" : "woody@island.spratly",
               "when" : ISODate("2017-05-09T05:48:42.743Z")
          } ] },
     "resume" : {
          "loginTokens" : [ {
                "when" : ISODate("2017-05-09T05:48:43.341Z"),
                "hashedToken" : "fMzgS8mGkkTqaz5pKUfOvY5L+4jS+2jHkiMpNaHhXUM="
               },
               { "when" : ISODate("2017-05-09T06:10:30.114Z"),
                 "hashedToken" : "OrzsPddJRu04h0NTCzqDlv8UXCmtYMjZZwQ4VPw2Fxc="
               }
          ] }
     },
     "emails" : [ { "address" : "woody@island.spratly", "verified" : true } ],
     "type" : "user",
     "status" : "away",
     "active" : true,
     "name" : "woody",
     "_updatedAt" : ISODate("2017-05-09T06:24:09.172Z"),
     "roles" : [ "admin" ],
     "lastLogin" : ISODate("2017-05-09T06:10:30.082Z"),
     "statusConnection" : "away",
     "utcOffset" : -5,
     "username" : "woody_island"
}


Fields Type Description

Comments

  1. Thanks for sharing this wonderful stuff plz visit for more info DbSchema 8.2.10

    ReplyDelete
  2. Great set of tips from the master himself. Excellent ideas. Anyone wishing to take their blogging forward must read these tips. Thank you .DbSchema 8.3.0 Crack With Serial Key 2020 Free Full Here!

    ReplyDelete
  3. The Carob Bean Gum Market acknowledges CBG as a thickening and stabilizing ground cocoa powder, but it comprises less fat and calories than cocoa. CBG acts as a water carrying agent in frozen dairy food, dairy products, and sweet food. It helps to improve the taste and prevent the formation of ice crystals. Carob bean gum improves water binding capacity and stabilizes the freezing and melting properties of food products. Carob bean gum is found to have applications in the textile industry as a sizing agent which improves bonding characteristics between resin systems.

    ReplyDelete
  4. Thanks a lot for the blog its informative post and I appreciate you for it. We share our posts about Test Microphone Online . It is easy to use and free so please go to the link and check it out.

    ReplyDelete
  5. I am Irene Garcia, a Corporate Sales Specialist operating in the Latin American region. We are experts in Market Research (Mercado de Luces LED en Brasil). We provide market reports across various industry verticals and also help with procurement and supply chain intelligence. By giving you better insights, we help you make informed business decisions.

    ReplyDelete
  6. They are also focusing on cardboard packaging to improve the green credentials of their businesses, which, in turn, is escalating the demand for beverage carton packaging machinery worldwide. Moreover, fast speed, improved productivity, optimal product hygiene and reduced overall costs are other advantages contributing to the beverage carton packaging machinery market growth.
    https://www.imarcgroup.com/beverage-carton-packaging-machinery-market

    ReplyDelete
  7. Thank you for providing excellent information. I appreciate your kind words. We're looking forward to seeing your website. Also, check out the blog post about the best typing apps for learning how to type. You will find in this article the best top 6 typing apps. Check out this article and use one of them daily.

    ReplyDelete
  8. A fantastic piece of writing. Thanks a lot. There's a lot of useful information in this book. By sharing your expertise, you provided me with a great deal of useful information. Check out the very genuine site's latest blog as well. Tests of beats per minute are discussed in this blog. Visit the Count beat per minute blog for some great information.

    ReplyDelete
  9. This article is so good and inspiring. I have an article abouttwitch giveaway set up guide 2021. The simplest decisions that we make in a day-to-day life are yes or no ones. This type of article is interesting, so you should visit the website and read it. Thank you.

    ReplyDelete
  10. Quality posts are important to invite visitors to visit a web page, similar to what this web page offers.
    I also want to refer you to the latest posts related to Click mouse test - Mouse Buttons, Scroll, Drag and Click Mouse test online. For starters you can learn more about microphones here. See the article mouse click test and learn more.

    ReplyDelete

  11. Thanks for shearing this kind of information red

    ReplyDelete
  12. Studio 3T Crack
    Studio 3T 2022 Crack is the most suitable program for MongoDB database management tool that provides GUI display operations.

    ReplyDelete
  13. So nice I am enjoying for that post as for u latest version of this Security tool Available
    dbschema-crack

    ReplyDelete
  14. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    getmacsoftware.com
    DBSchema Pro Crack

    ReplyDelete
  15. After looking through a few blog articles on your website,we sincerely appreciate the way you blogged.We’ve added it to our list of bookmarked web pages and will be checking back in the nearfuture. Please also visit my website and tell us what you think.Great work with hard work you have done I appreciate your work thanks for sharing it.
    Studio 3T Crack

    ReplyDelete
  16. I'm really impressed with your writing skills, as smart as the structure of your


    Latest Software Free Download



    weblog. Is this a paid topic



    Diskdigger crack



    do you change it yourself? However, stopping by with great quality writing, it's hard to see any good blog today.



    Program4pc audio convertercrack





    Diskdigger-crack





    Reimage pc reapir crack





    Wing ftp pro crack



    ReplyDelete
  17. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    Sonarworks Reference Crack
    Atomic Mail Sender Crack
    TweakNow PowerPack Crack
    Nevercenter Pixelmash Crack
    Sonarworks Reference Crack

    ReplyDelete
  18. I enjoyed reading your complete essay. I sincerely appreciate it. Visit this profile Refresh rate test,if you're unsure how to check your monitor's refresh rate. Very interesting stuff is shared in this profile.

    ReplyDelete

Post a Comment

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe