扩展内置的用户模型以支持环回中的更多属性和行为 [英] Extend built-in User model to support more properties and behaviors in loopback

查看:63
本文介绍了扩展内置的用户模型以支持环回中的更多属性和行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望模型代表我的 loopback 应用中的个人资料.但是,在环回中找到的内置用户模型仅具有以下属性

I want a model to represent a profile in my loopback app. But, the built-in User model found in loopback only have the following properties

  • 用户名
  • 密码
  • 领域
  • 电子邮件已验证

扩展built-in User model以便插入更多属性(如phone numberprofile picturelikes)的最佳方法是什么?

What is the best way to extend the built-in User model in order to insert more properties like phone number, profile picture, and the likes?

推荐答案

最好根据您的问题添加代码以获得更好的答案,但是您可以检查

It was better if you have added your code for better answer according to your question but you can check this site which talks about customizing the built-in user model and also this. I hope this answers your question.

这篇关于扩展内置的用户模型以支持环回中的更多属性和行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆