Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/database/migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/database/migrations/2018_11_14_224825_create_quotations_table.php
<?php

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

class CreateQuotationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('quotations', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('customer_id')->default(0);
            $table->unsignedInteger('business_id')->default(0);
            $table->string('title');
            $table->boolean('availability')->default(0);
            $table->timestamp('availabledate')->nullable();
            $table->string('rrp',60)->nullable();
            $table->string('currency',20)->nullable();
            $table->unsignedInteger('quantity')->default(0);

            $table->decimal('sell_price_delivery',8,2)->default(0);
            $table->decimal('cost_delivery',8,2)->default(0);
            $table->decimal('profit_delivery',8,2)->default(0);
            $table->decimal('gp_delivery',8,2)->default(0);

            $table->decimal('sell_price_installation',8,2)->default(0);
            $table->decimal('cost_installation',8,2)->default(0);
            $table->decimal('profit_installation',8,2)->default(0);
            $table->decimal('gp_installation',8,2)->default(0);

            $table->decimal('sell_price_quotation',8,2)->default(0);
            $table->decimal('cost_quotation',8,2)->default(0);
            $table->decimal('profit_quotation',8,2)->default(0);
            $table->decimal('gp_quotation',8,2)->default(0);

            $table->decimal('final_discount',8,2)->default(0);

            $table->decimal('price',8,2)->default(0);
            $table->decimal('sellprice',8,2)->default(0);
            $table->decimal('cost',8,2)->default(0);
            $table->decimal('profit',8,2)->default(0);
            $table->decimal('gp',8,2)->default(0);

            $table->text('contacts')->nullable();
            $table->text('groups')->nullable();
            $table->text('final_notes')->nullable();
            $table->string('code')->nullable();
            $table->unsignedInteger('quotation_status_id')->default(0);
            $table->enum('status',['publish','draft'])->default('draft');
            $table->timestamps();
        });
    }

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

Spamworldpro Mini