added foreign key for revenueitem and revenueitem_attribute