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('tender_related_docs', function (Blueprint $table) {
$table->id();
$table->integer('related_doc_sl_no');
$table->foreignId('tender_id')->constrained('create_tenders')->cascadeOnDelete();
$table->string('related_doc_name');
$table->string('related_doc_path')->nullable();
$table->string('created_by')->nullable();
$table->string('modified_by')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tender_related_docs');
}
};