Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • A user buys many products. A product has many permissions. A user has many permissions through the products they buy. Commented Jan 14, 2021 at 23:44
  • I wrote that option but saying that this is not possible because the permissions should be also manageable per user without the need of having a product Commented Jan 15, 2021 at 1:28
  • You are conflating database design with software design. If you are looking for a proper relational database schema, this has nothing to do with code. If you are looking for a model in code, that has nothing to do with the database. The question seems to be about the database, so remove at least the "object-oriented-design" tag. Commented Jan 15, 2021 at 9:23
  • @RobertBräutigam: if an object oriented language is using a relational database, then both apply. The challenge is adapting the object oriented model to the relational database. I think tackling both in one question is too broad. Focus on database first, then the OO model. Commented Jan 15, 2021 at 14:06
  • Would you ever need to revoke a permission that was given to the user from a purchase? Commented Jan 15, 2021 at 14:11