import shortid from 'shortid'; import Metadata from './Metadata.mongo'; export default { _id: { type: String, required: true, default: shortid.generate, }, slackId: { type: String, required: true, index: true, }, name: { type: String, required: true, }, channelId: { type: String, required: true, unique: true, }, botId: { type: String, required: false, }, webhookUrl: { type: String, required: false, }, configurationUrl: { type: String, required: false, }, meta: Metadata, };