export default function (schema: any): (entity: any, id?: null, relations?: never[]) => any;