Files
DiceCloud/app/imports/api/parenting/SoftRemovableSchema.js
2025-01-10 09:35:30 +02:00

24 lines
464 B
JavaScript

import SimpleSchema from 'simpl-schema';
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
let SoftRemovableSchema = new TypedSimpleSchema({
'removed': {
type: Boolean,
optional: true,
index: 1,
},
'removedAt': {
type: Date,
optional: true,
index: 1,
},
'removedWith': {
optional: true,
type: String,
regEx: SimpleSchema.RegEx.Id,
index: 1,
},
});
export default SoftRemovableSchema;