6

I just joined a team of a product where a user can have multiple roles. While getting familiar with the flow, I noticed that the previous developer, instead of creating a many-to-many relation of users and roles, adds the 6 records of the same user with the same email each with the different role id.

Comments
  • 2
    This is the optimal way of implementing this.

    //Drunk SC
  • 8
    There's a reason he's the _previous_ developer.
  • 1
    In the grand scheme of things who cares so what.
  • 0
    many-to-many lmao

    ever heard of enums?
  • 3
    One of my first posts on DevRant was about a database table that was designed to support future expansion, by which I mean that it had columns GeneralOther0 through GeneralOther20.
  • 0
    ER denormalization
Add Comment