Added OTS create,store,show
CI/CD / test_and_check_app (push) Failing after 45s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-10-08 13:51:40 +02:00
parent 494d1a49e5
commit d0c606494e
14 changed files with 285 additions and 441 deletions
@@ -0,0 +1,32 @@
<?php
use App\Models\Team;
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('one_time_secrets', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->nullableMorphs('recipient');
$table->foreignIdFor(Team::class)->nullable()->constrained();
$table->text('secret');
$table->dateTime('expires_at');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('one_time_secrets');
}
};