Designing classifieds data model

Please I need to design a database for classifieds site
Managing Categories and Subcategories
Managing Buyers, Sellers, and Users
Adding and Retrieving Category Attributes in the Property Table
Managing Posts and Their Attributes

Hi @cherif_bayazine,

Can I suggest MongoDB University to help you design your schema? They’ve got all sorts of useful free classes on all topics relating to MongoDB. One of my favorites is M340, which focuses exclusively on schema design for your application.

A full class catalog is available here: MongoDB Courses and Trainings | MongoDB University

I hope that helps!

Thanks,

Justin

1 Like

A good source that helped me is Building with Patterns: A Summary | MongoDB Blog.

1 Like

Data modeling with databases, any kind, initially involves finding out the entities, relationships (the 1:1, 1:N and N:N) between the entities, and the entity attributes. With MongoDB document model the main aspects to consider are the elements of a document and whether to use embedding and/or referencing. These are the things that come to mind, first, when modeling for the MongoDB database.

Useful references:

2 Likes

thanks brother :قلب: