'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.addColumn('users', 'fixed_token', {
      type: Sequelize.STRING(255),
      allowNull: true,
      unique: true,
      comment: '用户固定token，用于API访问验证'
    });
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.removeColumn('users', 'fixed_token');
  }
};