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'); + } +}