var wompt = require("../includes"),
mongoose = wompt.mongoose,
ObjectId = mongoose.Schema.ObjectId;

var AccountStats = new mongoose.Schema({
	account_id         : {type: ObjectId, index: true}
	,frequency         : String
	,t                 : Date
	,peak_connections  : Integer
	,connections       : Integer
});

// Model name, Schema, collection name
mongoose.model('AccountStats', AccountStats, 'account_stats');
module.exports = mongoose.model('AccountStats');

var wompt = require("../includes"),
mongoose = wompt.mongoose,
ObjectId = mongoose.Schema.ObjectId;

var AccountStats = new mongoose.Schema({
	account_id         : {type: ObjectId, index: true}
	,frequency         : String
	,t                 : Date
	,peak_connections  : Number
	,connections       : Number
});

// Model name, Schema, collection name
mongoose.model('AccountStats', AccountStats);
module.exports = mongoose.model('AccountStats');

Change AcountStats field type from Integer -> Number Integer isn't a type.
Change AcountStats field type from Integer -> Number
Integer isn't a type.
