StocksNew/database/migrations/2024_04_19_113329_create_documents_table.php

35 lines
1010 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?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');
}
};