mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
250 lines
11 KiB
PHP
250 lines
11 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders\PlumberService;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Carbon\Carbon;
|
|
|
|
class PlumberServiceContractObligationsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
|
|
// mushroom kingdom request service from plumber hero company to rescue princess peach
|
|
// plumber hero company rescue princess peach
|
|
// plumber hero company get reward
|
|
|
|
// plumber hero company request plumber rescue mission service
|
|
// plumber hero accept rescue mission
|
|
// plumber hero complete castle level
|
|
// plumber hero defeat bowser
|
|
// plumber hero rescue princess peach
|
|
// plumber hero get reward
|
|
|
|
public function run()
|
|
{
|
|
DB::table('contract_obligations')->insert([
|
|
[
|
|
'id' => 201,
|
|
'user_id' => 3,
|
|
'contract_id' => 201,
|
|
'contract_template_obligation_id' => 201,
|
|
'contract_entity_id' => 201,
|
|
'name' => 'mushroom kingdom request service from plumber hero company to rescue princess peach',
|
|
'sequence' => 1.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.request_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 202,
|
|
'user_id' => 3,
|
|
'contract_id' => 201,
|
|
'contract_template_obligation_id' => 202,
|
|
'contract_entity_id' => 203,
|
|
'name' => 'plumber hero company rescue princess peach',
|
|
'sequence' => 2.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 203,
|
|
'user_id' => 3,
|
|
'contract_id' => 201,
|
|
'contract_template_obligation_id' => 203,
|
|
'contract_entity_id' => 203,
|
|
'name' => 'plumber hero company get reward',
|
|
'sequence' => 3.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 204,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 204,
|
|
'contract_entity_id' => 203,
|
|
'name' => 'plumber hero company request plumber rescue mission service',
|
|
'sequence' => 1.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.request_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 205,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 205,
|
|
'contract_entity_id' => 202,
|
|
'name' => 'plumber hero accept rescue mission',
|
|
'sequence' => 2.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.request_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 206,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 206,
|
|
'contract_entity_id' => 202,
|
|
'name' => 'plumber hero complete castle level',
|
|
'sequence' => 3.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 207,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 207,
|
|
'contract_entity_id' => 202,
|
|
'name' => 'plumber hero defeat bowser',
|
|
'sequence' => 4.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 208,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 208,
|
|
'contract_entity_id' => 202,
|
|
'name' => 'plumber hero rescue princess peach',
|
|
'sequence' => 5.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 209,
|
|
'user_id' => 3,
|
|
'contract_id' => 202,
|
|
'contract_template_obligation_id' => 209,
|
|
'contract_entity_id' => 202,
|
|
'name' => 'plumber hero get reward',
|
|
'sequence' => 6.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_status' => config('constants.contract_obligation.complete_status.pending'),
|
|
'accept_status' => config('constants.contract_obligation.accept_status.pending'),
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'in_time_contract_obligation_template' => json_encode([]),
|
|
'status' => 1,
|
|
'completed_at' => null,
|
|
'failed_at' => null,
|
|
'start_at' => Carbon::now(),
|
|
'end_at' => Carbon::now()->addDays(1),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
]);
|
|
}
|
|
} |