⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.31
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
www
/
database
/
migrations
/
View File Name :
2024_03_06_064415_create_workouts_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('workouts', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('category_id')->nullable(); $table->json('tool_id')->nullable(); $table->string('slug')->nullable(); $table->string('image')->nullable(); $table->json('images')->nullable(); $table->json('videos')->nullable(); $table->integer('training_days')->nullable(); $table->integer('class_count')->nullable(); $table->double('price', 8, 2)->default(0); $table->integer('capacity')->default(0); $table->date('enroll_start')->nullable(); $table->date('enroll_end')->nullable(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->enum('status', [0, 1])->default(1)->comment('0=Inactive, 1=Active'); $table->foreign('category_id')->references('id')->on('workout_categories')->onDelete('cascade'); $table->foreign('created_by')->references('id')->on('admins')->onDelete('set null'); $table->foreign('updated_by')->references('id')->on('admins')->onDelete('set null'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('workouts'); } };