Is there a document intruducing the database schema design?

I’m study how discourse was implemented, and I hope to understand each fields in schemas of discourse database, so that I can quickly know the meaning of things done by ruby codes.Is there a suite document for me?

The best source of schema information is probably the annotations at the bottom of fiiles in the app/models directory. For example, the posts table columns are

https://github.com/discourse/discourse/blob/e7bad9f05d70db666f992b55e024d77ead6db030/app/models/post.rb#L1109-L1162

5 Likes

The Data Explorer Plugin might be worth a look too. It has the tables and columns listed out.

4 Likes