mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-27 01:22:29 +00:00
almost rebased
This commit is contained in:
6
test/data/models/user.js
Normal file
6
test/data/models/user.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var mongoose = require('mongoose');
|
||||
var UserSchema = require('../schemas/user');
|
||||
|
||||
var User = mongoose.model('User', UserSchema);
|
||||
|
||||
module.exports = User;
|
||||
24
test/data/users.json
Normal file
24
test/data/users.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
|
||||
"frank": {
|
||||
"username": "frank",
|
||||
"name": "Frank Sinatra",
|
||||
"bio": "Singer",
|
||||
"password": "password"
|
||||
},
|
||||
|
||||
"jobim": {
|
||||
"username": "jobim",
|
||||
"name": "Antonio Carlos Jobim",
|
||||
"bio": "Composer",
|
||||
"password": "password"
|
||||
},
|
||||
|
||||
"fred": {
|
||||
"username": "fred",
|
||||
"name": "Fred Astaire",
|
||||
"bio": "Dancer and Actor",
|
||||
"password": "password"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user