Heera/database/migrations/2024_04_19_113329_create_documents_table.php
2024-05-16 09:31:08 +05:45

35 lines
1010 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('tbl_documents', function (Blueprint $table) {
$table->unsignedTinyInteger('document_id')->autoIncrement();
$table->string('document_name')->nullable();
$table->text('document_path')->nullable();
$table->text('document_for_ref')->nullable();
$table->unsignedBigInteger('documentable_id');
$table->string('documentable_type');
$table->integer('status')->default(11);
$table->mediumText('description');
$table->mediumText('remarks');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_documents');
}
};