One Hat Cyber Team
Your IP :
216.73.216.187
Server IP :
178.63.234.5
Server :
Linux whm01.ins-jo.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Server Software :
Apache
PHP Version :
8.1.32
Buat File
|
Buat Folder
Dir :
~
/
home
/
business
/
www
/
database
/
migrations
/
View File Name :
2022_03_29_132053_create_user_items_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_items', function (Blueprint $table) { $table->id(); $table->integer('user_id')->default(0); $table->integer('stock')->default(0); $table->string('sku')->nullable(); $table->string('thumbnail')->nullable(); $table->decimal('current_price', 11, 2)->default(0); $table->decimal('previous_price', 11, 2)->default(0); $table->integer('is_feature')->default(0); $table->decimal('rating', 11, 2)->default(0.00); $table->string('type', 100)->comment('digital - digital product, physical - physical product')->nullable(); $table->text('download_link')->nullable(); $table->string('download_file', 100)->nullable(); $table->integer('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('items'); } }