Membuat Seeders di Module LPJ part 1

This commit is contained in:
2024-10-29 17:39:51 +07:00
parent 70f6b36e0b
commit 5d974d7c56
20 changed files with 1356 additions and 11 deletions

View File

@@ -0,0 +1,73 @@
<?php
namespace Modules\Lpj\Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\Lpj\Models\JenisJaminan;
class JenisJaminanSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
JenisJaminan::insert([
[
'code' => 'JJ001',
'name' => 'Tanah',
'slug' => 'tanah',
'jenis_legalitas_jaminan_id' => '["JLJ001","JLJ003","JLJ004","JLJ005","JLJ006"]',
'created_at' => now(),
'updated_at' => now(),
'authorized_at' => 't',
'created_by' => 1,
'updated_by' => 1
],
[
'code' => 'JJ002',
'name' => 'Rumah Tinggal / Ruko (Unit) / Apartemen (Unit) / Gudang',
'slug' => 'rumah-tinggal-ruko-unit-apartemen-unit-gudang',
'jenis_legalitas_jaminan_id' => null,
'created_at' => now(),
'updated_at' => now(),
'authorized_at' => 'r',
'created_by' => 1,
'updated_by' => 1
],
[
'code' => 'JJ003',
'name' => 'Kawasan Industrial / Komersil / Residensial - Perumahan',
'slug' => 'kawasan-industrial-komersil-residensial-perumahan',
'jenis_legalitas_jaminan_id' => null,
'created_at' => now(),
'updated_at' => now(),
'authorized_at' => 'k',
'created_by' => 1,
'updated_by' => 1
],
[
'code' => 'JJ004',
'name' => 'Gedung Apartement / Kantor / Condotel (Strata Tittle)',
'slug' => 'gedung-apartement-kantor-condotel-strata-tittle',
'jenis_legalitas_jaminan_id' => '["JLJ001","JLJ002"]',
'created_at' => now(),
'updated_at' => now(),
'authorized_at' => 'g',
'created_by' => 1,
'updated_by' => 1
],
[
'code' => 'JJ005',
'name' => 'Mall',
'slug' => 'mall',
'jenis_legalitas_jaminan_id' => '["JLJ001","JLJ006"]',
'created_at' => now(),
'updated_at' => now(),
'authorized_at' => null,
'created_by' => 1,
'updated_by' => 1
]
]);
}
}