generate entity schema into hook_schema