KSA-ORACLE-ALLACCESSKEYS/database/migrations/2025_09_03_135303_create_payments_table.php
Nyavokevin 9e5cc5ab1a
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
add dark theme
2025-09-18 20:34:07 +03:00

32 lines
808 B
PHP

<?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('payments', function (Blueprint $table) {
$table->id();
$table->decimal('amount', 10, 2);
$table->string('currency', 10)->default('USD');
$table->string('stripe_session_id', 255)->unique();
$table->enum('status', ['pending', 'succeeded', 'failed', 'refunded'])->default('pending');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('payments');
}
};