⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
database
/
migrations
/
View File Name :
2021_09_29_041836_create_user_plan_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserPlanTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bravo_plans', function (Blueprint $table) { $table->id(); $table->string('title')->nullable(); $table->text('content')->nullable(); $table->decimal('price',12,2)->nullable(); $table->integer('duration' )->nullable()->default(0); $table->string('duration_type',30)->nullable(); $table->decimal('annual_price',12,2)->nullable(); $table->integer('max_service')->nullable()->default(0); $table->string('status',30)->nullable(); $table->bigInteger('role_id')->nullable(); $table->tinyInteger('is_recommended')->nullable()->default(1); $table->softDeletes(); $table->bigInteger('create_user')->nullable(); $table->bigInteger('update_user')->nullable(); $table->timestamps(); }); Schema::create('bravo_plan_trans', function (Blueprint $table) { $table->id(); $table->string('title')->nullable(); $table->text('content')->nullable(); $table->bigInteger('create_user')->nullable(); $table->bigInteger('update_user')->nullable(); $table->integer('origin_id')->unsigned(); $table->string('locale')->index(); $table->unique(['origin_id','locale']); $table->softDeletes(); $table->timestamps(); }); Schema::create('bravo_user_plan', function (Blueprint $table) { $table->id(); $table->bigInteger('plan_id'); $table->timestamp('start_date')->nullable(); $table->timestamp('end_date')->nullable(); $table->integer('max_service')->nullable()->default(0); $table->decimal('price',12,2)->nullable(); $table->text("plan_data")->nullable(); $table->tinyInteger('status')->nullable()->default(1); $table->bigInteger('user_id')->nullable(); $table->bigInteger('create_user')->nullable(); $table->bigInteger('update_user')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bravo_plans'); Schema::dropIfExists('bravo_plan_trans'); Schema::dropIfExists('bravo_user_plan'); } }