Files
DiceCloud/app/imports/api/sharing/SharingSchema.js
2020-03-02 16:31:57 +02:00

37 lines
538 B
JavaScript

import SimpleSchema from 'simpl-schema';
let SharingSchema = new SimpleSchema({
owner: {
type: String,
regEx: SimpleSchema.RegEx.Id,
index: 1
},
readers: {
type: Array,
defaultValue: [],
index: 1,
max: 50,
},
"readers.$": {
type: String,
regEx: SimpleSchema.RegEx.Id
},
writers: {
type: Array,
defaultValue: [],
index: 1,
max: 20,
},
"writers.$": {
type: String,
regEx: SimpleSchema.RegEx.Id
},
public: {
type: Boolean,
optional: true,
index: 1,
},
});
export default SharingSchema;