Add multiple database seeders
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.
This commit is contained in:
102
database/seeders/KJPPSeeder.php
Normal file
102
database/seeders/KJPPSeeder.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Database\Seeders;
|
||||
|
||||
use Modules\Lpj\Models\KJPP;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class KJPPSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
KJPP::insert([
|
||||
[
|
||||
'code' => 'K000101',
|
||||
'name' => 'Bank Anda',
|
||||
'jenis_kantor' => 'Kantor Pusat',
|
||||
'nomor_ijin_usaha' => 'IU001',
|
||||
'province_code' => '32',
|
||||
'city_code' => '32.75',
|
||||
'district_code' => '32.75.03',
|
||||
'village_code' => '32.75.03.1001',
|
||||
'address' => 'Jl. Apel no. 1',
|
||||
'postal_code' => '17125',
|
||||
'nomor_telepon_kantor' => '0219976896',
|
||||
'email_kantor' => 'bankanda@bankanda.id',
|
||||
'nama_pimpinan' => 'Ida Royani',
|
||||
'nomor_hp_pimpinan' => '081800908070',
|
||||
'nama_pic_reviewer' => 'Beno',
|
||||
'nomor_hp_pic_reviewer' => '081765489070',
|
||||
'nama_pic_admin' => 'Dani',
|
||||
'nomor_hp_pic_admin' => '081278786666',
|
||||
'nama_pic_marketing' => 'Feni',
|
||||
'nomor_hp_pic_marketing' => '087867590801',
|
||||
'ijin_usaha_id' => '["IU001","IU002"]',
|
||||
'jenis_aset_id' => '["JJ001","JJ002","JJ003"]',
|
||||
'attachment' => 'default.pdf',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'code' => 'K000201',
|
||||
'name' => 'Bank Juri',
|
||||
'jenis_kantor' => 'Kantor Pusat',
|
||||
'nomor_ijin_usaha' => 'IU001',
|
||||
'province_code' => '12',
|
||||
'city_code' => '12.04',
|
||||
'district_code' => '12.04.11',
|
||||
'village_code' => '12.04.11.2005',
|
||||
'address' => 'Jl. Mangga no. 1',
|
||||
'postal_code' => '22876',
|
||||
'nomor_telepon_kantor' => '0219976890',
|
||||
'email_kantor' => 'bankjuri@bankjuri.id',
|
||||
'nama_pimpinan' => 'Arif Simbolo bolo',
|
||||
'nomor_hp_pimpinan' => '089643475023',
|
||||
'nama_pic_reviewer' => 'Beno Harefa',
|
||||
'nomor_hp_pic_reviewer' => '081765489080',
|
||||
'nama_pic_admin' => 'Dani Harefa',
|
||||
'nomor_hp_pic_admin' => '081278786667',
|
||||
'nama_pic_marketing' => 'Feni Harefa',
|
||||
'nomor_hp_pic_marketing' => '081765489075',
|
||||
'ijin_usaha_id' => '["IU001","IU002","IU003"]',
|
||||
'jenis_aset_id' => '["JJ001","JJ004","JJ003"]',
|
||||
'attachment' => 'default.pdf',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'code' => 'K000301',
|
||||
'name' => 'Bank Gantra',
|
||||
'jenis_kantor' => 'Kantor Pusat',
|
||||
'nomor_ijin_usaha' => 'IU001',
|
||||
'province_code' => '12',
|
||||
'city_code' => '12.21',
|
||||
'district_code' => '12.21.05',
|
||||
'village_code' => '12.21.05.2005',
|
||||
'address' => 'Jl. Apel no. 1',
|
||||
'postal_code' => '22776',
|
||||
'nomor_telepon_kantor' => '0219976889',
|
||||
'email_kantor' => 'bankgantra@bankgantra.id',
|
||||
'nama_pimpinan' => 'Arif Simantra',
|
||||
'nomor_hp_pimpinan' => '089643475020',
|
||||
'nama_pic_reviewer' => 'Beno Aditya',
|
||||
'nomor_hp_pic_reviewer' => '081765489079',
|
||||
'nama_pic_admin' => 'Dani Maulana',
|
||||
'nomor_hp_pic_admin' => '081278786680',
|
||||
'nama_pic_marketing' => 'Feni Rose',
|
||||
'nomor_hp_pic_marketing' => '081890901234',
|
||||
'ijin_usaha_id' => '["IU001","IU002","IU003"]',
|
||||
'jenis_aset_id' => '["JJ001","JJ002","JJ005"]',
|
||||
'attachment' => 'default.pdf',
|
||||
'status' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user