Renamed parties to creatureFolders

This commit is contained in:
Stefan Zermatten
2021-06-18 10:48:12 +02:00
parent 81d52a1847
commit 1a2d4b22bb

View File

@@ -0,0 +1,32 @@
import SimpleSchema from 'simpl-schema';
let CreatureFolders = new Mongo.Collection('parties');
let creatureFolderSchema = new SimpleSchema({
name: {
type: String,
defaultValue: 'New Party',
trim: false,
optional: true,
},
creatures: {
type: Array,
defaultValue: [],
},
'creatures.$': {
type: String,
regEx: SimpleSchema.RegEx.Id,
},
owner: {
type: String,
regEx: SimpleSchema.RegEx.Id,
},
archived: {
type: Boolean,
defaultValue: true,
},
});
CreatureFolders.attachSchema(creatureFolderSchema);
export default CreatureFolders;