Currently I have two tables, user types and user subtypes, that needs to be related based on condition. For example.: The UserType USER_A can only be related to Use