updated to match Database Schema for recursive associations.
Updated ForeignKey models for Rule class.