1 | ;
|
2 |
|
3 | var mongoose = require('mongoose');
|
4 |
|
5 | var ResourceSchema = function (collection) {
|
6 | return new mongoose.Schema({
|
7 | code: String,
|
8 | begin: String,
|
9 | end: String,
|
10 | capacity: String,
|
11 | operator: String,
|
12 | region: {
|
13 | code: String,
|
14 | title: String
|
15 | }
|
16 | }, {collection: collection});
|
17 |
|
18 | };
|
19 | module.exports = ResourceSchema; |
\ | No newline at end of file |