Renamed parties to creatureFolders
This commit is contained in:
32
app/imports/api/creature/creatureFolders/CreatureFolders.js
Normal file
32
app/imports/api/creature/creatureFolders/CreatureFolders.js
Normal 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;
|
||||
Reference in New Issue
Block a user