Removed all separate property collections to be replaced with a single "creature property" collection

This commit is contained in:
Stefan Zermatten
2019-07-30 15:13:39 +02:00
parent 31bc3663a7
commit 2385b69720
23 changed files with 169 additions and 969 deletions

View File

@@ -1,13 +1,9 @@
import SimpleSchema from 'simpl-schema';
import schema from '/imports/api/schema.js';
import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
import { PropertySchema } from '/imports/api/properties/Properties.js'
import ChildSchema from '/imports/api/parenting/ChildSchema.js';
//set up the collection for containers
let Containers = new Mongo.Collection("containers");
let ContainerSchema = schema({
let ContainerSchema = new SimpleSchema({
name: {
type: String,
optional: true,
@@ -39,11 +35,4 @@ let ContainerSchema = schema({
},
});
ContainerSchema.extend(ColorSchema);
Containers.attachSchema(ContainerSchema);
Containers.attachSchema(PropertySchema);
Containers.attachSchema(ChildSchema);
export default Containers;
export { ContainerSchema };