user entity and model, api module