<commit_before>import mongoose from 'mongoose'

const UserSchema = new mongoose.Schema({
  name: {
    type: String,
    match: [/^[A-Z][A-Z0-9 _-]{2,24}$/i,
      'Username must be between 3-24 characters, start with a letter and can only contain (A-Z, a-z, 0-9, -_ and space)'],
    trim: true
  },
  created_at: {type: Date, default: Date.now},
  steam_id: {type: String, required: true, index: {unique: true}},
  steam_info: {type: Object}
})
<commit_msg>admin in user model<commit_after>import mongoose from 'mongoose'

const UserSchema = new mongoose.Schema({
  name: {
    type: String,
    match: [/^[A-Z][A-Z0-9 _-]{2,24}$/i,
      'Username must be between 3-24 characters, start with a letter and can only contain (A-Z, a-z, 0-9, -_ and space)'],
    trim: true
  },
  created_at: {type: Date, default: Date.now},
  steam_id: {type: String, required: true, index: {unique: true}},
  steam_info: {type: Object},
  admin: {type: Boolean, default: false}
})

{'fraction_non_alphanumeric': 0.16252587991718426, 'fraction_numerical': 0.020703933747412008, 'mean_word_length': 3.6714975845410627, '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': '1165121', 'n_tokens_mistral': 359, 'n_tokens_neox': 358, 'n_words': 110}