35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
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_complaints', function (Blueprint $table) {
|
||
|
$table->tinyInteger('complaint_id')->unsigned()->autoIncrement();
|
||
|
$table->unsignedBigInteger('employee_id')->nullable();
|
||
|
$table->date('complaint_date')->nullable();
|
||
|
$table->unsignedBigInteger('complaint_by')->nullable();
|
||
|
$table->mediumText('description')->nullable();
|
||
|
$table->mediumText('remarks')->nullable();
|
||
|
$table->integer('status')->nullable();
|
||
|
$table->unsignedBigInteger('createdBy')->nullable();
|
||
|
$table->unsignedBigInteger('updatedBy')->nullable();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('tbl_complaints');
|
||
|
}
|
||
|
};
|