botpress
Version:
The world's first CMS for bots. Easily create, manage and extend chatbots.
25 lines (21 loc) • 771 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', table => {
table.string('id').primary();
table.string('userId');
table.string('platform');
table.enu('gender', ['unknown', 'male', 'female']);
table.integer('timezone');
table.string('picture_url');
table.string('first_name');
table.string('last_name');
table.string('locale');
table.timestamp('created_on');
});
}; /*
A table storing all the interlocutors (users) and their information
*/
//# sourceMappingURL=users.js.map