botpress
Version:
The world's first CMS for bots. Easily create, manage and extend chatbots.
18 lines (14 loc) • 655 B
JavaScript
;
var _helpers = require('./helpers');
var _helpers2 = _interopRequireDefault(_helpers);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = knex => (0, _helpers2.default)(knex).createTableIfNotExists('dialog_sessions', table => {
table.string('id').primary(); // Usually the user id, channel id, etc..
table.string('namespace'); // Could be used for A/B testing
table.text('state');
table.timestamp('created_on').defaultTo(knex.fn.now());
table.timestamp('active_on');
}); /*
Table storing the current dialog sessions
*/
//# sourceMappingURL=sessions.js.map