feat: integrate sukon and employee operator type across hse and qma heavy timesheet

This commit is contained in:
Ray1111-aa
2026-10-25 21:26:11 +07:00
parent e522ce5fc8
commit c2116712e7
7 changed files with 545 additions and 20 deletions
@@ -0,0 +1,31 @@
<?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::table('employees', function (Blueprint $table) {
$table->string('employee_type', 50)->default('Karyawan')->after('name')->index();
});
DB::table('employees')->whereNull('employee_type')->update(['employee_type' => 'Karyawan']);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('employees', function (Blueprint $table) {
$table->dropIndex(['employee_type']);
$table->dropColumn('employee_type');
});
}
};