From cc57e4bb18cee66b4c8fbb044c1c35522d3d3249 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 11 Aug 2022 00:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0migrate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022_08_08_011023_webauthn_credential.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 database/migrations/2022_08_08_011023_webauthn_credential.php diff --git a/database/migrations/2022_08_08_011023_webauthn_credential.php b/database/migrations/2022_08_08_011023_webauthn_credential.php new file mode 100644 index 0000000..37b5481 --- /dev/null +++ b/database/migrations/2022_08_08_011023_webauthn_credential.php @@ -0,0 +1,45 @@ +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'); + } +}