feat(qma): streamline support timesheet with typed unit, start meter only, single shift, and typed activity

This commit is contained in:
Ray1111-aa
2026-10-21 15:40:40 +07:00
parent 419a2dc18b
commit 0bb4918514
4 changed files with 355 additions and 308 deletions
@@ -0,0 +1,30 @@
<?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('unit_support_timesheets', function (Blueprint $table) {
$table->decimal('end_meter', 12, 2)->nullable()->default(null)->change();
$table->decimal('operating_hours', 10, 2)->nullable()->default(null)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('unit_support_timesheets', function (Blueprint $table) {
$table->decimal('end_meter', 12, 2)->nullable(false)->change();
$table->decimal('operating_hours', 10, 2)->nullable(false)->change();
});
}
};