Auto foreign key doesn't work with exported types
That's because the fk boilerplate is added only to types that fully match by name with the type name of the fk field. Since the asterisk is a part of the type name, this match never happens for exported types.