HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/ghayatcom/ghayatcom-api/database/migrations/2024_09_18_122643_create_packages_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePackagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('lab_packages', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable();
            $table->unsignedBigInteger('lab_id');
            $table->bigInteger('category_id')->nullable();
            $table->string('short_desc')->nullable();
            $table->longText('description')->nullable();
            $table->double('mrp', 8, 2)->nullable();
            $table->double('price', 8, 2)->nullable();
            $table->bigInteger('paramter_included')->nullable();
            $table->enum('sample_collection', ['1', '2'])->comment("1=>free,2=>paid")->default(1);
            $table->double('sample_collection_fee', 8, 2)->nullable();
            $table->string('report_time')->nullable();
            $table->enum('fasting_time', ['0', '1'])->comment("0=>no,1=>yes")->default(0);
            $table->string('fast_time')->nullable();
            $table->string('test_recommended_for')->nullable();
            $table->string('test_recommended_for_age')->nullable();
            $table->string('realted_package')->nullable();
            $table->string('lab_report')->nullable();
            $table->enum('status',[0,1])->default(1)->comment('0=>inactive,1=>active');
            $table->softDeletes($column = 'deleted_at', $precision = 0);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('packages');
    }
}