UNPKG

botpress

Version:

The world's first CMS for bots. Easily create, manage and extend chatbots.

27 lines (21 loc) 730 B
'use strict'; var _helpers = require('./helpers'); var _helpers2 = _interopRequireDefault(_helpers); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = knex => { return (0, _helpers2.default)(knex).createTableIfNotExists('notifications', table => { table.string('id').unique(); table.string('message'); table.string('level'); table.string('module_id'); table.string('module_icon'); table.string('module_name'); table.string('redirect_url'); table.timestamp('created_on'); table.boolean('read'); table.boolean('archived'); }); }; /* A table storing all notifications */ //# sourceMappingURL=notifications.js.map