{"size": 556, "ext": "js", "max_stars_repo_path": "db/models/trades.js", "max_stars_repo_name": "Noppadet/MetaTF", "max_stars_repo_stars_event_min_datetime": "2015-08-09T01:52:21.000Z", "max_stars_repo_stars_event_max_datetime": "2017-12-29T03:04:23.000Z", "max_issues_repo_path": "db/models/trades.js", "max_issues_repo_name": "Noppadet/MetaTF", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "db/models/trades.js", "max_forks_repo_name": "Noppadet/MetaTF", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.4761904762, "max_line_length": 62, "alphanum_fraction": 0.5935251799}
/**
 * Module dependencies
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

/**
 * Trade Schema
 */
module.exports = function() {
  var Trades = new Schema({
      owner_steamid : { type: String },
      date_posted : { type: Date, default: Date.now },
      tradeid : { type: String, unique: true, default: 4325 },
      items : { type: [] },
      finished: { type: Boolean, default: false },
      views: { type: Number, default: 0 },
      last_bump : { type: Date, default: Date.now }
  });
  mongoose.model("Trades", Trades);
};