Foreign key as part of compound key and one-to-many relationship