dounieqi6959 2019-08-17 14:02
浏览 77

玩家和团队中多对多关系的问题

I am writing an e-sports website where I allow users to register as a team to compete with others. Team and Users are many-to-many relation ship. One team will have many members, members can join in different team. On my website also have more than one competition that allow user to register.

I am confused on how to link this two tables with a bridge entity.

I have an idea which is ONE user is allowed to REGISTER the team which means the ONE user will have to enter other 4 members' MEMBERID on the website.

I am having a problem which is cannot connect all these tables.

Member TABLE, Team TABLE, [TeamMemberList] Table as bridge table

When the user register a team which has 5 member ids inserted into the TeamMemberList table which is the bridge entity connect TEAM and MEMBER table.

Is my idea wrong?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?