Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Issue #146 added basic schema for character news/notes
Browse files Browse the repository at this point in the history
  • Loading branch information
togiberlin committed Apr 27, 2016
1 parent 0a66dfc commit 8c98ed3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/models/characterNotes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var CharacterNotes = new Schema({
name : {type: String, ref: 'Character', required: true, unique: true},
slug: {type: String, unique: true, required: true},
text: {type: String},
createdAt: {type: Date}
});

module.exports = mongoose.model('CharacterNotes', CharacterNotes);

0 comments on commit 8c98ed3

Please sign in to comment.