mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
114 lines
4.2 KiB
PHP
114 lines
4.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders\RenderService;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
|
|
{
|
|
|
|
|
|
public function run()
|
|
{
|
|
DB::table('contract_template_obligations')->insert([
|
|
[
|
|
'id' => 10,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 3,//contract table 3 is Book Rental
|
|
'name' => 'Customer select book (borrow) & show membership card',
|
|
'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' => 11,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 3,//contract table 3 is Book Rental
|
|
'name' => 'Librarian verify customer membership and book',
|
|
'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' => 12,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 3,//contract table 3 is Book Rental
|
|
'name' => 'Customer Get the book',
|
|
'sequence' => 3.0,
|
|
'reference' => null,
|
|
'content' => null,
|
|
'must_complete' => 1,
|
|
'must_accept' => 1,
|
|
'complete_day_range' => 14,
|
|
'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' =>13,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 3,//contract table 3 is Book Rental
|
|
'name' => 'Customer Return book',
|
|
'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' =>14,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 1,
|
|
'name' => 'Librarian check the book',
|
|
'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' =>15,
|
|
'user_id' => 6,
|
|
'contract_template_id' => 1,
|
|
'name' => 'Librarian update customer borrow record',
|
|
'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')
|
|
]
|
|
]);
|
|
}
|
|
} |