Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/database/migrations/2023_11_02_114429_create_transactions_table.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('transactions', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('payer_id'); $table->foreign('payer_id')->references('id')->on('users')->onDelete('cascade'); $table->unsignedBigInteger('payee_id')->nullable(); $table->foreign('payee_id')->references('id')->on('users')->onDelete('cascade'); $table->double('amount')->nullable(); $table->string('note')->nullable(); $table->string('payment_type')->nullable(); $table->string('status')->nullable(); $table->longText('payload')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка