personal access token create and del

This commit is contained in:
xiaomlove
2025-02-13 01:48:33 +08:00
parent e45b7c42f0
commit 0d7cbcde9f
6 changed files with 118 additions and 26 deletions

View File

@@ -0,0 +1,29 @@
<?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('personal_access_token_plains', function (Blueprint $table) {
$table->id();
$table->bigInteger('access_token_id')->unsigned();
$table->string("plain_text_token");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('personal_access_token_plains');
}
};