mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
27 lines
712 B
PHP
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');
|
|
}
|
|
};
|