<commit_before>import mongoose, { Schema } from 'mongoose';

// PHOTO SCHEMA
// NOTE: May or may not use public_id. (provides use of transformations after the fact)
const photoSchema = new Schema({
  createdAt: Date,
  public_id: {
    type: String
  },
  url: String
});

// PHOTO MODEL
const Photo = mongoose.model('photos', photoSchema);<commit_msg>updated Photo model.<commit_after>import mongoose, { Schema } from 'mongoose';

// PHOTO SCHEMA
// NOTE: May or may not use public_id. (provides use of transformations after the fact)
const photoSchema = new Schema({
  createdAt: Date,
  public_id: {
    type: String,
    lowercase: true
  },
  url: String
});

// PHOTO MODEL
const Photo = mongoose.model('photos', photoSchema);
{'fraction_non_alphanumeric': 0.11612021857923498, 'fraction_numerical': 0.0, 'mean_word_length': 3.9527027027027026, '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': '6480460', 'n_tokens_mistral': 238, 'n_tokens_neox': 233, 'n_words': 79}