Files
DiceCloud/app/imports/api/creature/Notes.js
2018-10-19 14:01:23 +02:00

18 lines
512 B
JavaScript

import SimpleSchema from 'simpl-schema';
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
let Notes = new Mongo.Collection("notes");
noteSchema = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
name: {type: String, optional: true, trim: false},
description: {type: String, optional: true, trim: false},
});
Notes.attachSchema(noteSchema);
Notes.attachSchema(ColorSchema);
//Notes.attachBehaviour("softRemovable");
export default Notes;