'use strict'; /** * 外部打单账号增加 cookie 字段。 * * 用于存放该账号登录外部打单平台后的会话 cookie:由服务端登录成功后写回, * 后续请求直接复用,避免会话上下文丢失或凭据散落在临时位置。 * cookie 等同于登录态,接口不回显,仅服务端使用。 */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.addColumn('external_print_accounts', 'cookie', { type: Sequelize.TEXT, allowNull: true, comment: '外部打单平台会话 cookie(服务端登录后写回,接口不回显)', }); }, async down(queryInterface) { await queryInterface.removeColumn('external_print_accounts', 'cookie'); }, };