This commit introduces seeders for various entities in the database, including HubunganPemilikJaminan, JenisFasilitasKredit, and others. These seeders populate the database with initial data for testing and development purposes.
74 lines
2.5 KiB
PHP
74 lines
2.5 KiB
PHP
<?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
|
|
]
|
|
]);
|
|
}
|
|
}
|