Refactored character insertion and continued work on creation dialog

This commit is contained in:
Stefan Zermatten
2018-12-18 14:20:17 +02:00
parent dcc460d9e6
commit 13669fdc91
31 changed files with 131 additions and 192 deletions

View File

@@ -0,0 +1,17 @@
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;