27 lines
639 B
JavaScript
27 lines
639 B
JavaScript
import schema from '/imports/api/schema.js';
|
|
import SharingSchema from '/imports/api/sharing/SharingSchema.js';
|
|
|
|
/**
|
|
* Libraries are trees of library nodes where each node represents a character
|
|
* property.
|
|
*
|
|
* Libraries can be shared, have multiple readers and writers, and can be
|
|
* subscribed to.
|
|
*
|
|
* Permissions to library nodes are controlled by the libraries they belong to.
|
|
*/
|
|
let Libraries = new Mongo.Collection('libraries');
|
|
|
|
let LibrarySchema = schema({
|
|
name: {
|
|
type: String,
|
|
},
|
|
});
|
|
|
|
LibrarySchema.extend(SharingSchema);
|
|
|
|
Libraries.attachSchema(LibrarySchema);
|
|
|
|
export default Libraries;
|
|
export { LibrarySchema };
|