Change people in charge table name to person in charge

This commit is contained in:
Arya Dwi Putra
2025-12-01 08:47:40 +07:00
parent eebeb02b91
commit 366a22c514
3 changed files with 7 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ return new class extends Migration
$table->timestamps();
});
Schema::create('people_in_charge', function (Blueprint $table) {
Schema::create('person_in_charges', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('name');
$table->string('email')->nullable();
@@ -92,7 +92,7 @@ return new class extends Migration
Schema::dropIfExists('asset_locations');
Schema::dropIfExists('asset_categories');
Schema::dropIfExists('asset_users');
Schema::dropIfExists('people_in_charge');
Schema::dropIfExists('person_in_charges');
Schema::dropIfExists('departments');
Schema::dropIfExists('units');
Schema::dropIfExists('asset_classes');

View File

@@ -1,8 +1,6 @@
<?php
namespace Database\Seeders;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

View File

@@ -1,5 +1,4 @@
<?php
namespace Database\Seeders;
use App\Models\AssetCategory;
@@ -49,16 +48,16 @@ class MasterDataSeeder extends Seeder
]);
$categoryOffice = AssetCategory::create([
'name' => 'Peralatan Kantor',
'code' => 'OFFICE',
'name' => 'Peralatan Kantor',
'code' => 'OFFICE',
'description' => 'Kategori umum peralatan kantor',
]);
AssetCategory::create([
'name' => 'Laptop',
'code' => 'LAPTOP',
'name' => 'Laptop',
'code' => 'LAPTOP',
'description' => 'Perangkat laptop',
'parent_id' => $categoryOffice->id,
'parent_id' => $categoryOffice->id,
]);
AssetLocation::insert([