Migrations
This commit is contained in:
@@ -5,8 +5,10 @@ Libraries = new Mongo.Collection("library");
|
||||
librarySchema = new SimpleSchema({
|
||||
name: {type: String},
|
||||
owner: {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
readers: {type: [String], regEx: SimpleSchema.RegEx.Id, defaultValue: []},
|
||||
writers: {type: [String], regEx: SimpleSchema.RegEx.Id, defaultValue: []},
|
||||
readers: {type: Array, defaultValue: []},
|
||||
"readers.$": {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
writers: {type: Array, defaultValue: []},
|
||||
"writers.$": {type: String, regEx: SimpleSchema.RegEx.Id},
|
||||
public: {type: Boolean, defaultValue: false},
|
||||
});
|
||||
|
||||
|
||||
@@ -46,8 +46,10 @@ Schemas.LibrarySpells = new SimpleSchema({
|
||||
allowedValues: magicSchools,
|
||||
},
|
||||
library: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
|
||||
effects: {type: [Schemas.LibraryEffects], defaultValue: []},
|
||||
attacks: {type: [Schemas.LibraryAttacks], defaultValue: []},
|
||||
effects: {type: Array},
|
||||
"effects.$": {type: Schemas.LibraryEffects, defaultValue: []},
|
||||
attacks: {type: Array},
|
||||
"attacks.$": {type: Schemas.LibraryAttacks, defaultValue: []},
|
||||
});
|
||||
|
||||
LibrarySpells.attachSchema(Schemas.LibrarySpells);
|
||||
|
||||
Reference in New Issue
Block a user