| Server IP : 14.225.204.176 / Your IP : 216.73.216.169 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/home-services/database/seeds/ |
Upload File : |
<?php
/*
* File name: WalletsTableSeeder.php
* Last modified: 2021.10.22 at 18:43:45
* Author: SmarterVision - https://codecanyon.net/user/smartervision
* Copyright (c) 2021
*/
use Illuminate\Database\Seeder;
class WalletsTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
if (DB::table('wallets')->count() == 0) {
DB::table('wallets')->delete();
DB::table('wallets')->insert(array(
array(
'id' => '01194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'My USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 1,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '02194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'Home USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 2,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '03194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'Work USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 3,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '04194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'Dummy USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 4,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '05194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'Old USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 5,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '06194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'New USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 6,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '07194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'USD Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 7,
'enabled' => 1,
'created_at' => '2021-08-07 13:17:34',
'updated_at' => '2021-08-07 13:17:34',
),
array(
'id' => '8d194a4f-f302-47af-80b2-ceb2075d36dc',
'name' => 'Dollar Wallet',
'balance' => 200,
'currency' => '{"id":1,"name":"US Dollar","symbol":"$","code":"USD","decimal_digits":2,"rounding":0}',
'user_id' => 8,
'enabled' => 1,
'created_at' => '2021-01-07 13:17:34',
'updated_at' => '2021-01-07 13:17:34',
),
));
}
}
}