-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for #1 blog model created, and summary and description added to blog and
case study models
- Loading branch information
1 parent
0710362
commit e2b1b32
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var mongoose = require('./db') | ||
var MetaData = require('./base-content-attributes/meta-data').MetaData | ||
var Tag = require('./base-content-attributes/tag').Tag | ||
|
||
var blogSchema = mongoose.Schema({ | ||
idLegacy: Number, | ||
metaData: MetaData.schema, | ||
author: [{type: mongoose.Schema.Types.ObjectId, ref: 'Author'}], | ||
blogSummary: String, | ||
blogDescription: String, | ||
tags: [Tag.schema] | ||
}) | ||
|
||
exports.Blog = mongoose.model('Blog', blogSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters