Просмотр исходного кода

create slackbot access token.js

zahmis 5 лет назад
Родитель
Сommit
26086a8165
2 измененных файлов с 12 добавлено и 0 удалено
  1. 1 0
      src/server/models/index.js
  2. 11 0
      src/server/models/slackbot-access-token.js

+ 1 - 0
src/server/models/index.js

@@ -18,4 +18,5 @@ module.exports = {
   GlobalNotificationMailSetting: require('./GlobalNotificationSetting/GlobalNotificationMailSetting'),
   GlobalNotificationSlackSetting: require('./GlobalNotificationSetting/GlobalNotificationSlackSetting'),
   ShareLink: require('./share-link'),
+  SlackBotAccessToken: require('./slackbot-access-token'),
 };

+ 11 - 0
src/server/models/slackbot-access-token.js

@@ -0,0 +1,11 @@
+const mongoose = require('mongoose');
+
+const schema = new mongoose.Schema({
+  accessTokenForGrowi: { type: String, required: true, unique: true },
+  accessTokenForProxy: { type: String, required: true, unique: true },
+});
+
+module.exports = function(crowi) {
+  const model = mongoose.model('', schema);
+  return model;
+};