添加migrate
This commit is contained in:
parent
b4928fa32e
commit
cc57e4bb18
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class WebauthnCredential extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('webauthn_credentials', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->integer('user_id')->unsigned();
|
||||
$table->string('attachment_type', 20)->nullable()->index();
|
||||
$table->string('credential_id')->index();
|
||||
$table->string('type');
|
||||
$table->text('transports');
|
||||
$table->string('attestation_type');
|
||||
$table->text('trust_path');
|
||||
$table->uuid('aaguid');
|
||||
$table->text('credential_public_key');
|
||||
$table->integer('counter')->unsigned();
|
||||
$table->boolean('type_free')->default(false);
|
||||
$table->dateTime('last_used_at')->nullable();
|
||||
$table->dateTime('created_at')->nullable();
|
||||
$table->dateTime('updated_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('webauthn_credentials');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user