How to create a normal sails model without being in the models folder

前端 未结 5 1134
春和景丽
春和景丽 2021-02-13 05:50

So,

I\'m in the middle of implementing a plugin api for my application, and the plugins can have their own models, imagine this.

SimplePlugin = {
    pl         


        
5条回答
  •  天命终不由人
    2021-02-13 06:16

    In v0.12 sails.hooks.orm.normalizeModelDef doesn't exists anymore. Also sails/lib/hooks/orm/loadUserModules went to the sails-hook-orm npm module and is not longer part of sails.

提交回复
热议问题