refactor: 修改用户登日志迁移文件

This commit is contained in:
2025-01-04 10:05:22 +08:00
parent d520876460
commit 0fb0fb2c52

View File

@@ -32,8 +32,6 @@ class CreateSysUserLoginLog extends Migrator
$table->addColumn('user_id', 'integer', ['null' => false, 'comment' => '用户ID'])
->addColumn('ip', 'integer', ['limit' => 10, 'null' => false, 'comment' => '登录IP'])
->addColumn('user_agent', 'string', ['limit' => 255, 'null' => false, 'comment' => '登录设备UA信息'])
->addColumn('message', 'string', ['limit' => 128, 'null' => true, 'default' => null, 'comment' => '消息'])
->addColumn('status', 'boolean', ['null' => false, 'default' => 1, 'comment' => '登录状态, 1为成功, -1为失败'])
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->create();
}