UNPKG

398 BJavaScriptView Raw
1'use strict';
2
3var mongoose = require('mongoose');
4
5var 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};
19module.exports = ResourceSchema;
\No newline at end of file