I have 3 tables and I want to use on all a Foreign key. But I wanted to ask you is there a better method and a method that improve the perfomance for this code below: