UNPKG
apx-mongoose
Version:
latest (0.5.2)
0.5.2
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
Mongoose initializer for APX API server
github.com/snailjs/apx-mongoose
snailjs/apx-mongoose
apx-mongoose
/
test
/
models
/
model.js
15 lines
(13 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
var
mongoose =
require
(
'mongoose'
) , schema schema =
new
mongoose.
Schema
({
name
: {
type
:
String
,
require
:
true
} })
exports
.
name
=
'model'
exports
.
description
=
'Testing model'
exports
.
schema
= schema
exports
.
model
= mongoose.
model
(
'Test'
,schema)