openclassify/database/migrations/2026_03_03_092655_create_passkeys_table.php
2026-03-03 12:49:08 +03:00

27 lines
712 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('passkeys', function (Blueprint $table) {
$table->id();
$table->morphs('authenticatable');
$table->string('panel_id')->nullable();
$table->text('name');
$table->text('credential_id');
$table->json('data');
$table->timestamp('last_used_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('passkeys');
}
};