refactor: update OTP system to support user-specific verification tables with legacy encryption and multi-role authentication.
This commit is contained in:
@@ -51,6 +51,15 @@ return new class extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
// Add api_key and api_secret to users table (Service Customers/Employees)
|
||||
if (!Schema::connection('primary')->hasColumn('users', 'api_key')) {
|
||||
Schema::connection('primary')->table('users', function (Blueprint $table) {
|
||||
$table->string('api_key', 64)->nullable()->after('user_type');
|
||||
$table->string('api_secret', 128)->nullable()->after('api_key');
|
||||
$table->index('api_key', 'idx_users_api_key');
|
||||
});
|
||||
}
|
||||
|
||||
// ══════════════════════════════════════════════
|
||||
// MISSING INDEXES — Performance optimization
|
||||
// ══════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user