create database seeder for the services for testing environment

This commit is contained in:
omair saleh
2021-03-13 09:58:07 +08:00
parent 14580a2a08
commit cf15299723
4 changed files with 5 additions and 307 deletions
@@ -3,6 +3,7 @@
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CompaniesTableDevelopmentSeeder extends Seeder
{
@@ -16,43 +17,7 @@ class CompaniesTableDevelopmentSeeder extends Seeder
{
\DB::table('companies')->insert(array (
1 =>
array (
'id' => 2,
'name' => 'WONG JHUN YAN',
'reference' => '7153CWO',
'type' => 0,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:44:31',
'updated_at' => '2021-03-09 07:57:39',
),
2 =>
array (
'id' => 3,
'name' => 'Harry Sdn Bhd',
'reference' => '1236HSB',
'type' => 1,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:45:14',
'updated_at' => '2021-03-09 08:15:40',
),
3 =>
array (
'id' => 4,
'name' => 'MediaSkip Enterprise',
'reference' => '4295MEN',
'type' => 1,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:45:40',
'updated_at' => '2021-03-09 07:59:05',
),
DB::table('companies')->insert(array (
4 =>
array (
'id' => 5,
@@ -64,127 +29,7 @@ class CompaniesTableDevelopmentSeeder extends Seeder
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:50:26',
'updated_at' => '2021-03-09 07:50:26',
),
5 =>
array (
'id' => 6,
'name' => 'cief',
'reference' => '6768CIE',
'type' => 1,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:53:55',
'updated_at' => '2021-03-09 07:58:27',
),
6 =>
array (
'id' => 7,
'name' => 'Tan Kai Ying',
'reference' => '5601CWO',
'type' => 0,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 08:01:50',
'updated_at' => '2021-03-09 08:15:44',
),
7 =>
array (
'id' => 8,
'name' => 'nurfain zulaika',
'reference' => '8765CWO',
'type' => 0,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 08:08:15',
'updated_at' => '2021-03-09 08:15:35',
),
8 =>
array (
'id' => 9,
'name' => 'Wong Fang Ren',
'reference' => '5681CWO',
'type' => 0,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 08:10:36',
'updated_at' => '2021-03-09 08:15:31',
),
9 =>
array (
'id' => 10,
'name' => 'CIEF Worldwide',
'reference' => '7775CWO',
'type' => 1,
'business_type' => 2,
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2021-03-09 08:25:51',
'updated_at' => '2021-03-09 08:25:51',
),
10 =>
array (
'id' => 11,
'name' => 'Md Hasan Akbar',
'reference' => '2549CWO',
'type' => 0,
'business_type' => 2,
'status' => 2,
'deleted_at' => NULL,
'created_at' => '2021-03-09 09:08:42',
'updated_at' => '2021-03-09 09:39:29',
),
11 =>
array (
'id' => 12,
'name' => 'Atvantic sdn bhd',
'reference' => '2244ASB',
'type' => 1,
'business_type' => 3,
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2021-03-09 09:30:07',
'updated_at' => '2021-03-09 09:30:07',
),
12 =>
array (
'id' => 13,
'name' => 'Toy Trading Snd Bhd',
'reference' => '9330TTB',
'type' => 1,
'business_type' => 2,
'status' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-11 01:09:55',
'updated_at' => '2021-03-11 01:10:22',
),
13 =>
array (
'id' => 14,
'name' => 'abc123',
'reference' => '2986ABC',
'type' => 1,
'business_type' => 2,
'status' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-11 05:38:49',
'updated_at' => '2021-03-11 05:39:57',
),
14 =>
array (
'id' => 15,
'name' => 'Leong Chee Siong',
'reference' => '1778CWO',
'type' => 0,
'business_type' => 2,
'status' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-11 06:23:03',
'updated_at' => '2021-03-11 06:24:27',
),
)
));
@@ -48,117 +48,7 @@ class CurrencyRatesTableDevelopmentSeeder extends Seeder
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:52:57',
'updated_at' => '2021-03-09 07:52:57',
),
3 =>
array (
'id' => 4,
'currency_id' => 3,
'selling' => '4.25000',
'payment_method_type' => 1,
'service_id' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:52:57',
'updated_at' => '2021-03-09 09:56:24',
),
4 =>
array (
'id' => 5,
'currency_id' => 3,
'selling' => '4.23000',
'payment_method_type' => 2,
'service_id' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:52:57',
'updated_at' => '2021-03-09 09:56:24',
),
5 =>
array (
'id' => 6,
'currency_id' => 3,
'selling' => '0.22000',
'payment_method_type' => 3,
'service_id' => 1,
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:52:57',
'updated_at' => '2021-03-09 07:52:57',
),
6 =>
array (
'id' => 7,
'currency_id' => 2,
'selling' => '1.54000',
'payment_method_type' => 1,
'service_id' => 4,
'deleted_at' => NULL,
'created_at' => '2021-03-09 10:09:11',
'updated_at' => '2021-03-09 10:09:11',
),
7 =>
array (
'id' => 8,
'currency_id' => 2,
'selling' => '1.53000',
'payment_method_type' => 2,
'service_id' => 4,
'deleted_at' => NULL,
'created_at' => '2021-03-09 10:09:11',
'updated_at' => '2021-03-09 10:09:11',
),
8 =>
array (
'id' => 9,
'currency_id' => 3,
'selling' => '4.20000',
'payment_method_type' => 1,
'service_id' => 4,
'deleted_at' => NULL,
'created_at' => '2021-03-09 10:09:11',
'updated_at' => '2021-03-09 10:09:11',
),
9 =>
array (
'id' => 10,
'currency_id' => 3,
'selling' => '4.10000',
'payment_method_type' => 2,
'service_id' => 4,
'deleted_at' => NULL,
'created_at' => '2021-03-09 10:09:11',
'updated_at' => '2021-03-09 10:09:11',
),
10 =>
array (
'id' => 11,
'currency_id' => 2,
'selling' => '1.60000',
'payment_method_type' => 1,
'service_id' => 5,
'deleted_at' => NULL,
'created_at' => '2021-03-11 06:34:23',
'updated_at' => '2021-03-11 06:34:23',
),
11 =>
array (
'id' => 12,
'currency_id' => 2,
'selling' => '1.55000',
'payment_method_type' => 2,
'service_id' => 5,
'deleted_at' => NULL,
'created_at' => '2021-03-11 06:34:23',
'updated_at' => '2021-03-11 06:34:23',
),
12 =>
array (
'id' => 13,
'currency_id' => 2,
'selling' => '1.54000',
'payment_method_type' => 3,
'service_id' => 5,
'deleted_at' => NULL,
'created_at' => '2021-03-11 06:34:23',
'updated_at' => '2021-03-11 06:34:23',
),
)
));
-1
View File
@@ -40,7 +40,6 @@ class DatabaseSeeder extends Seeder
if(App()->environment('local')){
$this->call(CompaniesTableDevelopmentSeeder::class);
$this->call(BanksTableDevelopmentSeeder::class);
$this->call(CurrenciesTableDevelopmentSeeder::class);
$this->call(ServiceTypesTableDevelopmentSeeder::class);
$this->call(SegmentsTableDevelopmentSeeder::class);
$this->call(SegmentConstantsTableDevelopmentSeeder::class);
@@ -24,43 +24,7 @@ class ServiceTypesTableDevelopmentSeeder extends Seeder
'deleted_at' => NULL,
'created_at' => '2021-03-09 07:52:56',
'updated_at' => '2021-03-09 09:57:40',
),
1 =>
array (
'id' => 2,
'name' => 'X1 Transfer (P)',
'status' => '5',
'deleted_at' => '2021-03-09 09:50:10',
'created_at' => '2021-03-09 09:35:55',
'updated_at' => '2021-03-09 09:50:10',
),
2 =>
array (
'id' => 3,
'name' => 'x9',
'status' => '5',
'deleted_at' => NULL,
'created_at' => '2021-03-09 09:36:26',
'updated_at' => '2021-03-09 09:55:26',
),
3 =>
array (
'id' => 4,
'name' => 'X3 Service',
'status' => '2',
'deleted_at' => NULL,
'created_at' => '2021-03-09 10:09:11',
'updated_at' => '2021-03-09 10:09:11',
),
4 =>
array (
'id' => 5,
'name' => 'M3',
'status' => '2',
'deleted_at' => NULL,
'created_at' => '2021-03-11 06:34:23',
'updated_at' => '2021-03-11 06:34:23',
),
)
));