public PeopleDbContext(DbContextOptions <PeopleDbContext> options, MetaDbContext teamDb, ClaimsPrincipal user)
            : base(options)
        {
            var userNameClaim = user?.Claims.FirstOrDefault(c => c.Type == ClaimTypes.NameIdentifier);

            if (userNameClaim != null)
            {
                filterOnOnlyTheseTeamIds = teamDb.TeamUsers
                                           .Where(tu => tu.UserName == userNameClaim.Value)
                                           .Select(tu => tu.TeamId)
                                           .ToArray();
            }

            isAuthenticated = user?.Identity?.IsAuthenticated ?? false;
        }