<commit_before>const mongoose = require( 'mongoose' );
const Schema = mongoose.Schema;

const Project = new Schema({
  name: {
    type: String,
    require: true
  },
  author: {
    type: Schema.Types.ObjectId,
    require: true,
    ref: 'User'
  },
  description: {
    type: String,
    require: true
  },
  progress: Array,
  time : { type : Date, default: Date.now }
  });

module.exports = mongoose.model( 'Project', Project );<commit_msg>change progress in Project model from array to array of Progress objs<commit_after>const mongoose = require( 'mongoose' );
const Schema = mongoose.Schema;

const Project = new Schema({
  name: {
    type: String,
    require: true
  },
  author: {
    type: Schema.Types.ObjectId,
    require: true,
    ref: 'User'
  },
  description: {
    type: String,
    require: true
  },
  progress: [{type: Schema.Types.ObjectId, ref: 'Progress'}],
  time : { type : Date, default: Date.now }
  });

module.exports = mongoose.model( 'Project', Project );
{'fraction_non_alphanumeric': 0.1379657603222558, 'fraction_numerical': 0.0, 'mean_word_length': 3.2297872340425533, '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': '2816851', 'n_tokens_mistral': 319, 'n_tokens_neox': 326, 'n_words': 92}