Backup Perbaikan
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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('verifikator.verifikasi_absen_tokens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('pengajuan_id')->constrained('verifikator.pengajuan_presensis')->onDelete('cascade');
|
||||
$table->string('nip');
|
||||
$table->string('token', 64)->unique();
|
||||
$table->string('purpose')->default('verifikasi-presensi');
|
||||
$table->timestamp('expires_at');
|
||||
$table->timestamp('first_accessed_at')->nullable();
|
||||
$table->timestamp('used_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('verifikator.verifikasi_absen_tokens');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user