/**
 * 迁移: 添加签到功能字段
 * 版本: 0003
 * 日期: 2025-01-09
 */

module.exports = {
  async up(manager) {
    console.log('  - 添加 Registrations.checkInStatus 字段...');
    await manager.executeSql(`
      ALTER TABLE Registrations ADD COLUMN checkInStatus INTEGER DEFAULT 0;
    `);
    
    console.log('  - 添加 Registrations.checkInTime 字段...');
    await manager.executeSql(`
      ALTER TABLE Registrations ADD COLUMN checkInTime DATETIME;
    `);
  },

  async down(manager) {
    console.log('  - 回滚不支持');
  }
};
