factories for join tables