'use strict'; /** * 外部打单账号增加 token 字段。 * * 店管家登录接口(/FFAccount/LoginPortal)返回的 Token 是访问工作台(fxali.dgjapp.com) * 的必需凭据:仅有 cookie 无法打开登录后的页面,必须带上 token。 * token 与 cookie 一样只由服务端保存和使用,接口不回显。 */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.addColumn('external_print_accounts', 'token', { type: Sequelize.STRING(255), allowNull: true, comment: '外部打单平台登录 Token(服务端登录后写回,接口不回显)', }); }, async down(queryInterface) { await queryInterface.removeColumn('external_print_accounts', 'token'); }, };