mongoose-user-model

时间:2024-07-04 10:08:53
【文件属性】:

文件名称:mongoose-user-model

文件大小:6KB

文件格式:ZIP

更新时间:2024-07-04 10:08:53

JavaScript

猫鼬用户模型 一组模式来表示具有关联帐户的用户。 旨在与模块一起使用。 为了允许通过 mongo 的同一个 mongoose 包装器创建多个连接,这个模块默认返回 Schemas,然后可以绑定到一个连接。 用法 var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/mygymthing'); var properties = { 'auth-local-password-salt': 'some-secure-token' }; var schemaExtensions = { fields: [], // optional set of fields to add to the user model methods: [], // optional array of


【文件预览】:
mongoose-user-model-master
----models()
--------user.js(4KB)
--------account.js(968B)
----index.js(816B)
----package.json(501B)
----readme.md(2KB)
----LICENSE(1KB)
----GruntFile.js(967B)
----.gitignore(552B)

网友评论