mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-20 21:04:21 +00:00
114 lines
4.2 KiB
PHP
114 lines
4.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders\RepairService;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
|
|
{
|
|
|
|
|
|
public function run()
|
|
{
|
|
DB::table('contract_template_obligations')->insert([
|
|
[
|
|
'id' => 4,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 2,//contract table 2 is repair service
|
|
'name' => 'Car Owner send car to workshop and explain/describe the problem to Repair Guy',
|
|
'sequence' => 1.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.money'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 5,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 2,//contract table 2 is repair service
|
|
'name' => 'Repair Guy check/analysis Car',
|
|
'sequence' => 2.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 6,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 2,//contract table 2 is repair service
|
|
'name' => 'Repair Guy repair car',
|
|
'sequence' => 3.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.offer_service'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' =>7,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 1,
|
|
'name' => 'Car Owner pay repair fees',
|
|
'sequence' => 4.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.received_service'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' =>8,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 1,
|
|
'name' => 'Car Owner check car',
|
|
'sequence' => 5.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.received_service'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' =>9,
|
|
'user_id' => 5,
|
|
'contract_template_id' => 1,
|
|
'name' => 'Repair Service complete & Car Owner drive car back home',
|
|
'sequence' => 6.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 1,
|
|
'type' => config('constants.contract_obligation.type.received_service'),
|
|
'status' => 1,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
]
|
|
]);
|
|
}
|
|
} |