{"size": 396, "ext": "js", "max_stars_repo_path": "src/models/version.js", "max_stars_repo_name": "betagouv/eac-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/models/version.js", "max_issues_repo_name": "betagouv/eac-api", "max_issues_repo_issues_event_min_datetime": "2018-06-25T13:08:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T11:56:01.000Z", "max_forks_repo_path": "src/models/version.js", "max_forks_repo_name": "betagouv/eac-api", "max_forks_repo_forks_event_min_datetime": "2019-02-04T02:00:58.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-04T02:00:58.000Z"}
{"max_stars_count": null, "max_issues_count": 30, "max_forks_count": 1, "avg_line_length": 28.2857142857, "max_line_length": 63, "alphanum_fraction": 0.7146464646}
const mongoose = require('mongoose')

const VersionSchema = new mongoose.Schema({
  model: { type: String, enum: ['Action', 'Actor', 'School'] },
  modelId: { type: mongoose.Schema.Types.ObjectId },
  meta: mongoose.Schema.Types.Mixed,
  createdAt: { type: Date, default: Date.now }
})

class Version {}
VersionSchema.loadClass(Version)

module.exports = mongoose.model('Version', VersionSchema)
