HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 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_16_085728_create_parameters_table.php
<?php

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

class CreateParametersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('lab_parameters', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('lab_id');
            $table->string('name')->nullable();
            $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->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(1);
            $table->string('fast_time')->nullable();
            $table->string('test_recommended_for')->nullable();
            $table->string('test_recommended_for_age')->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('parameters');
    }
}