ActiveRecord classes, with relations functions (except for the dependencies class)