Tam Trinh
Tam Trinh

Reputation: 11

Change loopback default model User to Member

I just don't want to use the name "User", I want it to be "Member"

//// this is for bypassing stackoverflow qualiy control

Upvotes: 0

Views: 56

Answers (1)

MaxAlex
MaxAlex

Reputation: 3319

You can expand the built-in model User: https://loopback.io/doc/en/lb3/Extending-built-in-models.html

server/models/Member.json

{
  "name": "Member",
  "base": "User",
...  
} 

Upvotes: 2

Related Questions