botpress
Version:
The world's first CMS for bots. Easily create, manage and extend chatbots.
20 lines (16 loc) • 554 B
JavaScript
;
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('users_tags', table => {
table.string('userId');
table.string('tag');
table.string('value');
table.timestamp('tagged_on');
table.unique(['userId', 'tag']);
});
}; /*
A table storing all the user tags
*/
//# sourceMappingURL=tags.js.map