📜  创建记录猫鼬模型 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:15.587000             🧑  作者: Mango

代码示例2
// Create new user.
   let newUser = {
       username: req.body.username,
       password: passwordHashed,
       salt: salt,
       authorisationKey: authCode
   };

   // From require('UserModel');
   return ModelUser.create(newUser);