Add some dependecy rules to models