Files
DiceCloud/app/imports/api/properties/Containers.js

36 lines
497 B
JavaScript

import SimpleSchema from 'simpl-schema';
let ContainerSchema = new SimpleSchema({
name: {
type: String,
optional: true,
trim: false
},
carried: {
type: Boolean,
defaultValue: true,
optional: true,
},
contentsWeightless: {
type: Boolean,
optional: true,
},
weight: {
type: Number,
min: 0,
defaultValue: 0
},
value: {
type: Number,
min: 0,
defaultValue: 0
},
description: {
type: String,
optional: true,
trim: false
},
});
export { ContainerSchema };