Refactored character insertion and continued work on creation dialog
This commit is contained in:
17
app/imports/api/creature/properties/Notes.js
Normal file
17
app/imports/api/creature/properties/Notes.js
Normal 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;
|
||||
Reference in New Issue
Block a user