mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-26 06:10:58 +00:00
17 lines
416 B
JavaScript
17 lines
416 B
JavaScript
"use strict";
|
|
|
|
var mongoose = require("mongoose");
|
|
var Schema = mongoose.Schema;
|
|
|
|
var archivedGatherSchema = new Schema({
|
|
createdAt: { type: Date, default: Date.now },
|
|
gather: { type: Schema.Types.Mixed, required: true }
|
|
});
|
|
|
|
archivedGatherSchema.index({ createdAt: -1 });
|
|
|
|
archivedGatherSchema.static('recent', function (callback) {
|
|
|
|
});
|
|
|
|
module.exports = mongoose.model("ArchivedGather", archivedGatherSchema);
|