<commit_before>Players = new Mongo.Collection('players');

Players.allow({
  insert: function(userId, doc) {
  return !!userId;
  },
  update: function(userId, doc) {
  return !!userId;
  },
  remove: function(userId, doc) {
  return !!userId;
  }
});

PlayerSchema = new SimpleSchema({
  playerName: {
    type: String,
    label: "Player Name"
  },
  characterName: {
    type: String,
    label: "Character Name"
  },
  class: {
    type: String,
    label: "Class"
  },
  level: {
    type: Number,
    label: "Level"
  },
  session: {
    type: String,
    label: "Session",
    autoValue: function(){
      return this.userId
    },
    autoform: {
      type: "hidden"
    }
  }
});

Players.attachSchema(PlayerSchema);<commit_msg>updates Player schema<commit_after>Players = new Mongo.Collection('players');

Players.allow({
  insert: function(userId, doc) {
  return !!userId;
  },
  update: function(userId, doc) {
  return !!userId;
  },
  remove: function(userId, doc) {
  return !!userId;
  }
});

PlayerSchema = new SimpleSchema({
  playerName: {
    type: String,
    label: "Player Name"
  },
  characterName: {
    type: String,
    label: "Character Name"
  },
  class: {
    type: String,
    label: "Class"
  },
  level: {
    type: Number,
    label: "Level"
  },
  imageUrl: {
    type: String,
    label: "Image URL"
  },
  session: {
    type: String,
    label: "Session",
    autoValue: function(){
      return this.userId
    },
    autoform: {
      type: "hidden"
    }
  }
});

Players.attachSchema(PlayerSchema);
{'fraction_non_alphanumeric': 0.15220207253886012, 'fraction_numerical': 0.0, 'mean_word_length': 2.796068796068796, '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': '6849576', 'n_tokens_mistral': 531, 'n_tokens_neox': 536, 'n_words': 121}