Change people in charge table name to person in charge
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
|
||||
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user