Moved name to properties schema
This commit is contained in:
@@ -12,11 +12,6 @@ let Actions = new Mongo.Collection('actions');
|
||||
* Actions are things a character can do
|
||||
*/
|
||||
let ActionSchema = schema({
|
||||
// Overrides the inherited name
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -14,10 +14,6 @@ let Attributes = new Mongo.Collection('attributes');
|
||||
* Attributes are numbered stats of a character
|
||||
*/
|
||||
let AttributeSchema = schema({
|
||||
// The nice-to-read name
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
// The technical, lowercase, single-word name used in formulae
|
||||
variableName: {
|
||||
type: String,
|
||||
|
||||
@@ -7,15 +7,9 @@ import { EffectSchema } from '/imports/api/creature/properties/Effects.js';
|
||||
let Buffs = new Mongo.Collection('buffs');
|
||||
|
||||
let BuffSchema = new SimpleSchema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
trim: false,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
trim: false,
|
||||
},
|
||||
duration: {
|
||||
type: SimpleSchema.Integer,
|
||||
|
||||
@@ -5,11 +5,7 @@ import ColorSchema from "/imports/api/creature/subSchemas/ColorSchema.js";
|
||||
|
||||
let Classes = new Mongo.Collection("classes");
|
||||
|
||||
let ClassSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
let ClassSchema = schema({});
|
||||
|
||||
ClassSchema.extend(ColorSchema);
|
||||
|
||||
|
||||
@@ -10,10 +10,6 @@ let Effects = new Mongo.Collection('effects');
|
||||
* that modify their final value or presentation in some way
|
||||
*/
|
||||
let EffectSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
operation: {
|
||||
type: String,
|
||||
defaultValue: 'add',
|
||||
|
||||
@@ -5,10 +5,6 @@ import PropertySchema from '/imports/api/creature/subSchemas/PropertySchema.js';
|
||||
let Experiences = new Mongo.Collection("experience");
|
||||
|
||||
let ExperienceSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
// Potentially long description of the event
|
||||
description: {
|
||||
type: String,
|
||||
|
||||
@@ -10,10 +10,6 @@ import ColorSchema from '/imports/api/creature/subSchemas/ColorSchema.js';
|
||||
let Features = new Mongo.Collection('features');
|
||||
|
||||
let FeatureSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -4,11 +4,7 @@ import ChildSchema from '/imports/api/parenting/ChildSchema.js';
|
||||
|
||||
let Folders = new Mongo.Collection('folders');
|
||||
|
||||
let FolderSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
let FolderSchema = schema({});
|
||||
|
||||
Folders.attachSchema(FolderSchema);
|
||||
Folders.attachSchema(PropertySchema);
|
||||
|
||||
@@ -6,10 +6,6 @@ import PropertySchema from '/imports/api/creature/subSchemas/PropertySchema.js';
|
||||
let Notes = new Mongo.Collection("notes");
|
||||
|
||||
let NoteSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -5,11 +5,6 @@ import ChildSchema from '/imports/api/parenting/ChildSchema.js';
|
||||
let Proficiencies = new Mongo.Collection("proficiencies");
|
||||
|
||||
let ProficiencySchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
trim: false,
|
||||
optional: true,
|
||||
},
|
||||
// A number representing how proficient the character is
|
||||
value: {
|
||||
type: Number,
|
||||
|
||||
@@ -11,10 +11,6 @@ let Skills = new Mongo.Collection("skills");
|
||||
* Skills have an ability score modifier that they use as their basis
|
||||
*/
|
||||
let SkillSchema = schema({
|
||||
// The nice-to-read name
|
||||
name: {
|
||||
type: String,
|
||||
},
|
||||
// The technical, lowercase, single-word name used in formulae
|
||||
variableName: {
|
||||
type: String,
|
||||
|
||||
@@ -6,10 +6,6 @@ import ChildSchema from '/imports/api/parenting/ChildSchema.js';
|
||||
let SpellLists = new Mongo.Collection("spellLists");
|
||||
|
||||
let SpellListSchema = schema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -23,11 +23,6 @@ let SpellSchema = schema({
|
||||
defaultValue: 'prepared',
|
||||
allowedValues: ['prepared', 'unprepared', 'always'],
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
defaultValue: 'New Spell',
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
|
||||
@@ -12,6 +12,10 @@ const PropertySchema = new SimpleSchema({
|
||||
type: Boolean,
|
||||
defaultValue: true,
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
},
|
||||
order: {
|
||||
type: SimpleSchema.Integer,
|
||||
index: true,
|
||||
|
||||
Reference in New Issue
Block a user