How to code asscoiation between one table and mutlible others?

What you are looking for is something called “Polymorphic Associations”. Take a look at Containing Polymorphic Associations for some ideas.