{"size": 1080, "ext": "js", "max_stars_repo_path": "dist/employer-forums/employer-post-report.model.js", "max_stars_repo_name": "musama96/unmudl-lines", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/employer-forums/employer-post-report.model.js", "max_issues_repo_name": "musama96/unmudl-lines", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/employer-forums/employer-post-report.model.js", "max_forks_repo_name": "musama96/unmudl-lines", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 45.0, "max_line_length": 83, "alphanum_fraction": 0.6990740741}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mongoose = require("mongoose");
var PostReportStatus;
(function (PostReportStatus) {
    PostReportStatus["Ignored"] = "ignored";
    PostReportStatus["Warned"] = "warned";
    PostReportStatus["Delete"] = "deleted";
})(PostReportStatus = exports.PostReportStatus || (exports.PostReportStatus = {}));
exports.EmployerPostReportSchema = new mongoose.Schema({
    post: { type: mongoose.Types.ObjectId, ref: 'posts' },
    reply: { type: mongoose.Types.ObjectId, ref: 'replies' },
    reportingUsers: [{ type: mongoose.SchemaTypes.ObjectId, ref: 'users' }],
    reportingLearners: [{ type: mongoose.SchemaTypes.ObjectId, ref: 'learners' }],
    status: { type: String, default: 'pending' },
}, {
    timestamps: true,
});
exports.EmployerPostReportSchema.query.paginate = function (page, perPage) {
    page = parseInt(String(page), 10);
    perPage = parseInt(String(perPage), 10);
    return this.skip((page - 1) * perPage).limit(perPage);
};
//# sourceMappingURL=employer-post-report.model.js.map