简体   繁体   中英

ASP.NET Core Identity user groups

Hi I'm planning a website where each user should be able to create groups and then invite other users to join the group. So what I'm planning to do is a many-to-many realtion ship betwen the identityUser and a group-table. Is this a good idea or are their other to achive this in a better way?

I would suggest that you use an intermediary table in your database design.

This would lead to three tables:

  • Users
  • Groups
  • UserGroups

UserGroups would contain the primary keys from the Users and Groups tables.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM