generator-aristos
Version:
create aristos cms fast with yeoman generator.
33 lines (31 loc) • 635 B
JavaScript
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
/* project Category Schema */
const DocumentationCategorySchema = new mongoose.Schema({
title: {
type: String,
required: true
},
slug: {
type: String
},
description: {
type: String
},
keywords: {
type: String
},
author: {
type: Schema.Types.ObjectId,
ref: "User"
},
sorting: {
type: Number
}
}); /* end of project category schema */
/* start of project category functions */
/* end of project category funcitons */
module.exports = mongoose.model(
"DocumentationCategory",
DocumentationCategorySchema
);