<commit_before><commit_msg>added a flag schema<commit_after>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
  Schema = mongoose.Schema;

/**
 * Flag Schema
 */
var FlagSchema = new Schema({
  created: {
    type: Date,
    default: Date.now
  },
  user: {
    type: Schema.ObjectId,
    ref: 'User'
  },
  reason: {
    type: String,
    enum: ['aborted']
  }
});

mongoose.model('Flag', FlagSchema);
{'fraction_non_alphanumeric': 0.16551724137931034, 'fraction_numerical': 0.0, 'mean_word_length': 3.1523809523809523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741833', 'n_tokens_mistral': 149, 'n_tokens_neox': 152, 'n_words': 35}