Accept class name on fk definition