User has signed up for multiple teams (less than 30).
UserTeam table – UserId, TeamId
How about I store this as varchar like “123:0;124:1;155:1” where 123, 124 and 155 are team-ids, is there any better method? or maybe just “124:155” which means just store the teamids that do have the permission.
UserScore – UserId, ActivityId, ScoreId, TeamId’s?
What do you suggest for Oracle database?
Edit: Total number of teams could be tens of thousands or something, but total number of teams allotted to the user will be less than 30.
Use normalization rules to design your data model. From there de-normalize is necessary from a performance point of view.