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

@@ -1,8 +1,8 @@
import SimpleSchema from 'simpl-schema'; import SimpleSchema from 'simpl-schema';
let Parties = new Mongo.Collection('parties'); let CreatureFolders = new Mongo.Collection('parties');
let partySchema = new SimpleSchema({ let creatureFolderSchema = new SimpleSchema({
name: { name: {
type: String, type: String,
defaultValue: 'New Party', defaultValue: 'New Party',
@@ -21,8 +21,12 @@ let partySchema = new SimpleSchema({
type: String, type: String,
regEx: SimpleSchema.RegEx.Id, regEx: SimpleSchema.RegEx.Id,
}, },
archived: {
type: Boolean,
defaultValue: true,
},
}); });
Parties.attachSchema(partySchema); CreatureFolders.attachSchema(creatureFolderSchema);
export default Parties; export default CreatureFolders;