当使用"slc loopback:relation"定义关系时,它会在最后一行提示"直通模型".
? Select the model to create the relationship from: CoffeeShop
? Relation type: has many
? Choose a model to create a relationship with: Reviewer
? Enter the property name for the relation: reviewers
? Optionally enter a custom foreign key:
? Require a through model? No
Run Code Online (Sandbox Code Playgroud)
有人可以简单解释一下直通模型是什么吗?一些例子将不胜感激.