56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use App\Libraries\UuidHelper;
|
|
|
|
class CodeCardTypeTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('code_card_type')->truncate();
|
|
|
|
$uuid = new UuidHelper;
|
|
|
|
$data = array(
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PARTNERGP",
|
|
'name' => "GRAB - UNIOIL LOYALTY CARD",
|
|
),
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PARTNERICA",
|
|
'name' => "ICA - UNIOIL LOYALTY CARD",
|
|
),
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PRIVATEB",
|
|
'name' => "UNIOIL CLASSIC",
|
|
),
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PRIVATEP",
|
|
'name' => "UNIOIL ELITE",
|
|
),
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PRIVATEV",
|
|
'name' => "UNIOIL PREMUIM",
|
|
),
|
|
array(
|
|
'cardtype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "PARTNERXSI",
|
|
'name' => "XAVIER - UNIOIL LOYALTY CARD",
|
|
),
|
|
);
|
|
|
|
DB::table('code_card_type')->insert($data);
|
|
}
|
|
}
|