One Hat Cyber Team
Your IP :
3.140.254.100
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
database
/
migrations
/
Edit File:
2021_05_30_175055_create_payments_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. * * @return void */ public function up() { Schema::create('payments', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('user_id'); $table->string('frequency')->nullable()->comment('prepaid|monthly|yearly'); $table->string('order_id')->nullable(); $table->unsignedBigInteger('plan_id'); $table->float('price'); $table->string('currency'); $table->string('gateway'); $table->string('status')->comment('completed|cancelled|declined|failed|pending'); $table->string('plan_name'); $table->integer('words')->nullable()->default(0); $table->integer('images')->nullable()->default(0); $table->integer('characters')->nullable()->default(0); $table->integer('minutes')->nullable()->default(0); $table->dateTime('valid_until')->nullable(); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('payments'); } };
Simpan