Add captcha tokens management.

This commit is contained in:
2023-08-22 00:15:35 +06:00
parent d2b29e2225
commit 742b0feaf0
38 changed files with 832 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('captcha_tokens', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->ulid('public_token')->unique();
$table->uuid('private_token')->unique();
$table->unsignedBigInteger('user_id')->index();
$table->foreign('user_id')->references('id')->on('users');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('captcha_tokens');
}
};