CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('create_tenders', function (Blueprint $table) {
$table->id();
$table->string('tender_no');
$table->string('tender_name');
$table->foreignId('client_id')->constrained('clients')->cascadeOnDelete();
$table->string('department_name');
$table->tinyInteger('tender_period');
$table->Integer('existing_man_power')->default('0');
$table->Integer('new_man_power')->default('0');
$table->foreignId('tender_veriety_id')->constrained('tender_verieties')->cascadeOnDelete();
$table->string('description');
$table->string('tender_mode');
$table->string('information_source');
$table->datetime('tender_opening_date');
$table->datetime('tender_closing_date');
$table->datetime('tender_technical_bid_date')->nullable();
$table->datetime('tender_financial_bid_date')->nullable();
$table->datetime('tender_submitted_date')->nullable();
$table->datetime('pre_bid_meeting_date')->nullable();
$table->tinyInteger('tender_validity_days')->nullable();
$table->tinyInteger('tender_status')->default('1');
$table->string('notinterested_reason')->nullable();
$table->decimal('tender_value',15,2)->nullable();
$table->decimal('tender_emd_amount',15,2)->nullable();
$table->decimal('tender_security_deposit',15,2)->nullable();
$table->decimal('tender_bank_guarantee',15,2)->nullable();
$table->decimal('tender_paper_cost',15,2)->nullable();
$table->string('tender_assigned_to')->nullable();
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('create_tenders');
}
};