Skip to content
Snippets Groups Projects
CollectionBulkAddInteraction.js 446 B
Newer Older
const {Schema, model} = require('mongoose');

const CollectionBulkAddInteractionSchema = new Schema({
    userID: {
        type: String,
        required: true,
        unique: true
    },
    guildID: {
        type: String,
        required: true
    },
    collection: {
        type: Schema.Types.ObjectId,
        ref: 'coursecollection'
    }
});

module.exports = model('collectionbulkaddinteraction', CollectionBulkAddInteractionSchema);