Create missing associations in User.rb file

&19085 (comment 2709915764)

There are some associations for Users table which we defined on the DB level but not on the model level. They need to be defined on model level too with appropriate dependent clause.

Edited by 🤖 GitLab Bot 🤖