Add new field in registration form from custom plugin

You’ll want to avoid editing the core files (like lib/pkp/schemas/user.json or lib/pkp/classes/core/DataObject.inc.php) in favor of calling hooks within your plugin.

Have you seen this thread?

It contains references to several examples.