Files
DiceCloud/app/imports/api/properties/subSchemas/RollDetailsSchema.js
2023-09-28 21:27:05 +02:00

22 lines
407 B
JavaScript

import SimpleSchema from 'simpl-schema';
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
const RollDetailsSchema = new SimpleSchema({
number: {
type: Number,
},
diceSize: {
type: Number,
},
values: {
type: Array,
defaultValue: [],
maxCount: STORAGE_LIMITS.diceRollValuesCount,
},
'values.$': {
type: Number,
},
});
export default RollDetailsSchema;