var mongoose = require('mongoose');

var IPSchema = new mongoose.Schema({
    id: {
        type: String,
        index: true
    },

    data: {

    }
});
@@ -28,16 +28,42 @@
 goose');
+%0Aconst doc_name = 'ip_db';
 %0A%0Avar IP
@@ -127,56 +127,660 @@
 ring
-,%0A        index: true%0A    %7D,%0A%0A    data: %7B%0A%0A    %7D%0A%7D);
+%0A    %7D,%0A%0A    data: %5B%7B%0A        host: %7B%0A            type: String%0A        %7D,%0A        timestamp: %7B%0A            type: Date%0A        %7D,%0A        alive: %7B%0A            type: Boolean%0A        %7D,%0A        output: %7B%0A            type: String%0A        %7D,%0A%0A        time: %7B%0A            type: Number%0A        %7D,%0A%0A        min: %7B%0A            type: Number%0A        %7D,%0A%0A        max: %7B%0A            type: Number%0A        %7D,%0A%0A        avg: %7B%0A            type: Number%0A        %7D,%0A%0A        stddev: %7B%0A            type: Number%0A        %7D,%0A%0A        numeric_host: %7B%0A            type: String%0A        %7D%0A    %7D%5D%0A%7D);%0A%0Avar IP = mongoose.model('IP', IPSchema, doc_name);%0A%0Amodule.exports = %7B%0A    IP: IP%0A%7D

add module