create user for Rental and Repair

This commit is contained in:
weiken.intex
2021-07-09 15:43:54 +08:00
parent 19541c2e93
commit da2b9459af
15 changed files with 82 additions and 54 deletions
@@ -18,7 +18,7 @@ class RenderServiceContractEntitiesTableSeeder extends Seeder
DB::table('contract_entities')->insert([
[
'id' => 5,
'user_id' => 2,
'user_id' => 6,
'contract_id' =>3,
'entity_id' => 5,
'entity_signature_id' => 5,
@@ -29,7 +29,7 @@ class RenderServiceContractEntitiesTableSeeder extends Seeder
],
[
'id' => 6,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'entity_id' => 6,
'entity_signature_id' =>6,
@@ -18,7 +18,7 @@ class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
DB::table('contract_obligation_dependencies')->insert([
[
'id' => 8,
'user_id' => 2,
'user_id' => 6,
'contract_obligation_id' => 11, // Librarian verify customer membership and book
'depend_contract_obligation_id' => 10, // Customer select book (borrow) & show membership card
'status' => 1,
@@ -27,7 +27,7 @@ class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 9,
'user_id' => 2,
'user_id' => 6,
'contract_obligation_id' => 12, // Customer Get the book
'depend_contract_obligation_id' => 11, // Librarian verify customer membership and book
'status' => 1,
@@ -36,7 +36,7 @@ class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 10,
'user_id' => 2,
'user_id' => 6,
'contract_obligation_id' => 13, // Customer Return book
'depend_contract_obligation_id' => 12, // Customer Get the book
'status' => 1,
@@ -45,7 +45,7 @@ class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 11,
'user_id' => 2,
'user_id' => 6,
'contract_obligation_id' => 14, // Librarian check the book
'depend_contract_obligation_id' => 13, // Customer Return book
'status' => 1,
@@ -54,7 +54,7 @@ class RenderServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 12,
'user_id' => 2,
'user_id' => 6,
'contract_obligation_id' => 15, // Librarian update customer borrow record
'depend_contract_obligation_id' => 14, // Librarian check the book
'status' => 1,
@@ -16,7 +16,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
DB::table('contract_obligations')->insert([
[
'id' => 10,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'contract_template_obligation_id' => 10,
'contract_entity_id' => 5,
@@ -39,7 +39,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 11,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'contract_template_obligation_id' => 11,
'contract_entity_id' => 6,
@@ -62,7 +62,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 12,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'contract_template_obligation_id' =>12,
'contract_entity_id' => 5,
@@ -85,7 +85,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 13,
'user_id' => 2,
'user_id' => 6,
'contract_id' =>3,
'contract_template_obligation_id' =>13,
'contract_entity_id' => 5,
@@ -108,7 +108,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
],
[
'id' =>14,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'contract_template_obligation_id' =>14,
'contract_entity_id' => 6,
@@ -131,7 +131,7 @@ class RenderServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 15,
'user_id' => 2,
'user_id' => 6,
'contract_id' => 3,
'contract_template_obligation_id' =>15,
'contract_entity_id' => 6,
@@ -18,7 +18,7 @@ class RenderServiceContractTemplateObligationDependenciesTableSeeder extends See
DB::table('contract_template_obligation_dependencies')->insert([
[
'id' => 8,
'user_id' => 2,
'user_id' => 6,
'contract_template_obligation_id' => 11, // Librarian verify customer membership and book
'depend_contract_template_obligation_id' =>10, // Customer select book (borrow) & show membership card
'status' => 1,
@@ -27,7 +27,7 @@ class RenderServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 9,
'user_id' => 2,
'user_id' => 6,
'contract_template_obligation_id' => 12, // Customer Get the book
'depend_contract_template_obligation_id' => 11, // Librarian verify customer membership and book
'status' => 1,
@@ -36,7 +36,7 @@ class RenderServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 10,
'user_id' => 2,
'user_id' => 6,
'contract_template_obligation_id' => 13, // Customer Return book
'depend_contract_template_obligation_id' => 12, // Customer Get the book
'status' => 1,
@@ -45,7 +45,7 @@ class RenderServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 11,
'user_id' => 2,
'user_id' => 6,
'contract_template_obligation_id' => 14, // Librarian check the book
'depend_contract_template_obligation_id' => 13, // Customer Return book
'status' => 1,
@@ -54,7 +54,7 @@ class RenderServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 12,
'user_id' => 3,
'user_id' => 6,
'contract_template_obligation_id' => 15, // Librarian update customer borrow record
'depend_contract_template_obligation_id' => 14, // Librarian check the book
'status' => 1,
@@ -15,7 +15,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
DB::table('contract_template_obligations')->insert([
[
'id' => 10,
'user_id' => 2,
'user_id' => 6,
'contract_template_id' => 3,//contract table 3 is Book Rental
'name' => 'Customer select book (borrow) & show membership card',
'sequence' => 1.0,
@@ -31,7 +31,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' => 11,
'user_id' => 2,
'user_id' => 6,
'contract_template_id' => 3,//contract table 3 is Book Rental
'name' => 'Librarian verify customer membership and book',
'sequence' => 2.0,
@@ -47,7 +47,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' => 12,
'user_id' => 2,
'user_id' => 6,
'contract_template_id' => 3,//contract table 3 is Book Rental
'name' => 'Customer Get the book',
'sequence' => 3.0,
@@ -63,7 +63,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>13,
'user_id' => 2,
'user_id' => 6,
'contract_template_id' => 3,//contract table 3 is Book Rental
'name' => 'Customer Return book',
'sequence' => 4.0,
@@ -79,7 +79,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>14,
'user_id' => 2,
'user_id' => 6,
'contract_template_id' => 1,
'name' => 'Librarian check the book',
'sequence' => 5.0,
@@ -95,7 +95,7 @@ class RenderServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>15,
'user_id' => 3,
'user_id' => 6,
'contract_template_id' => 1,
'name' => 'Librarian update customer borrow record',
'sequence' => 6.0,
@@ -24,7 +24,7 @@ class RenderServiceContractTemplatesTableSeeder extends Seeder
DB::table('contract_templates')->insert([
[
'id' => 3,
'user_id' => 4,
'user_id' => 6,
'name' => 'Book Rental',
'complete_day_range' => 14,
'status' => config('constants.contact.status.active'),
@@ -18,7 +18,7 @@ class RenderServiceEntitiesTableSeeder extends Seeder
DB::table('entities')->insert([
[
'id' => 5,
'user_id' => 2,
'user_id' => 6,
'name' => 'Customer',
'status' => 1,
'created_at' => date('Y-m-d H:i:s'),
@@ -26,7 +26,7 @@ class RenderServiceEntitiesTableSeeder extends Seeder
],
[
'id' => 6,
'user_id' => 2,
'user_id' => 6,
'name' => 'Librarian',
'status' => 1,
'created_at' => date('Y-m-d H:i:s'),
@@ -18,7 +18,7 @@ class RepairServiceContractEntitiesTableSeeder extends Seeder
DB::table('contract_entities')->insert([
[
'id' => 3,
'user_id' => 3,
'user_id' => 5,
'contract_id' =>2,
'entity_id' => 3,
'entity_signature_id' => 3,
@@ -29,7 +29,7 @@ class RepairServiceContractEntitiesTableSeeder extends Seeder
],
[
'id' => 4,
'user_id' => 4,
'user_id' => 5,
'contract_id' => 2,
'entity_id' => 4,
'entity_signature_id' =>4,
@@ -18,7 +18,7 @@ class RepairServiceContractObligationDependenciesTableSeeder extends Seeder
DB::table('contract_obligation_dependencies')->insert([
[
'id' => 3,
'user_id' => 4,
'user_id' => 5,
'contract_obligation_id' => 5, // Repair Guy check/analysis Car
'depend_contract_obligation_id' => 4, // Car Owner send car to workshop and explain/describe the problem to Repair Guy
'status' => 1,
@@ -27,7 +27,7 @@ class RepairServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 4,
'user_id' => 4,
'user_id' => 5,
'contract_obligation_id' => 6, // Repair Guy repair car
'depend_contract_obligation_id' => 5, // Repair Guy check/analysis Car
'status' => 1,
@@ -36,7 +36,7 @@ class RepairServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 5,
'user_id' => 3,
'user_id' => 5,
'contract_obligation_id' => 7, // Car Owner pay repair fees
'depend_contract_obligation_id' => 6, // Repair Guy repair car
'status' => 1,
@@ -45,7 +45,7 @@ class RepairServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 6,
'user_id' => 3,
'user_id' => 5,
'contract_obligation_id' => 8, // Car Owner check car
'depend_contract_obligation_id' => 6, // Repair Guy repair car
'status' => 1,
@@ -54,7 +54,7 @@ class RepairServiceContractObligationDependenciesTableSeeder extends Seeder
],
[
'id' => 7,
'user_id' => 3,
'user_id' => 5,
'contract_obligation_id' => 9, // Repair Service complete & Car Owner drive car back home
'depend_contract_obligation_id' => 7, // Repair Guy repair car
'status' => 1,
@@ -16,7 +16,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
DB::table('contract_obligations')->insert([
[
'id' => 4,
'user_id' => 3,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' => 4,
'contract_entity_id' => 3,
@@ -39,7 +39,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 5,
'user_id' => 4,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' => 5,
'contract_entity_id' => 4,
@@ -62,7 +62,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 6,
'user_id' => 4,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' =>6,
'contract_entity_id' => 4,
@@ -85,7 +85,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 7,
'user_id' => 3,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' =>7,
'contract_entity_id' => 3,
@@ -108,7 +108,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 8,
'user_id' => 3,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' =>8,
'contract_entity_id' => 3,
@@ -131,7 +131,7 @@ class RepairServiceContractObligationsTableSeeder extends Seeder
],
[
'id' => 9,
'user_id' => 3,
'user_id' => 5,
'contract_id' => 2,
'contract_template_obligation_id' =>9,
'contract_entity_id' => 3,
@@ -18,7 +18,7 @@ class RepairServiceContractTemplateObligationDependenciesTableSeeder extends See
DB::table('contract_template_obligation_dependencies')->insert([
[
'id' => 3,
'user_id' => 4,
'user_id' => 5,
'contract_template_obligation_id' => 5, // Repair Guy check/analysis Car
'depend_contract_template_obligation_id' =>4, // Car Owner send car to workshop and explain/describe the problem to Repair Guy
'status' => 1,
@@ -27,7 +27,7 @@ class RepairServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 4,
'user_id' => 4,
'user_id' => 5,
'contract_template_obligation_id' => 6, // Repair Guy repair car
'depend_contract_template_obligation_id' => 5, // Repair Guy check/analysis Car
'status' => 1,
@@ -36,7 +36,7 @@ class RepairServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 5,
'user_id' => 3,
'user_id' => 5,
'contract_template_obligation_id' => 7, // Car Owner pay repair fees
'depend_contract_template_obligation_id' => 6, // Repair Guy repair car
'status' => 1,
@@ -45,7 +45,7 @@ class RepairServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 6,
'user_id' => 3,
'user_id' => 5,
'contract_template_obligation_id' => 8, // Car Owner check car
'depend_contract_template_obligation_id' => 6, // Repair Guy repair car
'status' => 1,
@@ -54,7 +54,7 @@ class RepairServiceContractTemplateObligationDependenciesTableSeeder extends See
],
[
'id' => 7,
'user_id' => 3,
'user_id' => 5,
'contract_template_obligation_id' => 9, // Repair Service complete & Car Owner drive car back home
'depend_contract_template_obligation_id' => 7, // Repair Guy repair car
'status' => 1,
@@ -15,7 +15,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
DB::table('contract_template_obligations')->insert([
[
'id' => 4,
'user_id' => 3,
'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,
@@ -31,7 +31,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' => 5,
'user_id' => 4,
'user_id' => 5,
'contract_template_id' => 2,//contract table 2 is repair service
'name' => 'Repair Guy check/analysis Car',
'sequence' => 2.0,
@@ -47,7 +47,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' => 6,
'user_id' => 4,
'user_id' => 5,
'contract_template_id' => 2,//contract table 2 is repair service
'name' => 'Repair Guy repair car',
'sequence' => 3.0,
@@ -63,7 +63,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>7,
'user_id' => 3,
'user_id' => 5,
'contract_template_id' => 1,
'name' => 'Car Owner pay repair fees',
'sequence' => 4.0,
@@ -79,7 +79,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>8,
'user_id' => 3,
'user_id' => 5,
'contract_template_id' => 1,
'name' => 'Car Owner check car',
'sequence' => 5.0,
@@ -95,7 +95,7 @@ class RepairServiceContractTemplateObligationsTableSeeder extends Seeder
],
[
'id' =>9,
'user_id' => 3,
'user_id' => 5,
'contract_template_id' => 1,
'name' => 'Repair Service complete & Car Owner drive car back home',
'sequence' => 6.0,
@@ -24,7 +24,7 @@ class RepairServiceContractTemplatesTableSeeder extends Seeder
DB::table('contract_templates')->insert([
[
'id' => 2,
'user_id' => 4,
'user_id' => 5,
'name' => 'Repair Car Service',
'complete_day_range' => 1,
'status' => config('constants.contact.status.active'),
@@ -18,7 +18,7 @@ class RepairServiceEntitiesTableSeeder extends Seeder
DB::table('entities')->insert([
[
'id' => 3,
'user_id' => 2,
'user_id' => 5,
'name' => 'Car Owner',
'status' => 1,
'created_at' => date('Y-m-d H:i:s'),
@@ -26,7 +26,7 @@ class RepairServiceEntitiesTableSeeder extends Seeder
],
[
'id' => 4,
'user_id' => 2,
'user_id' => 5,
'name' => 'Repair Guy',
'status' => 1,
'created_at' => date('Y-m-d H:i:s'),
+28
View File
@@ -71,6 +71,34 @@ class UsersTableSeeder extends Seeder
'login_at' => date('Y-m-d H:i:s'),
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
],
[
'id' => 5,
'first_name' => 'Repair',
'last_name' => 'project',
'username' => 'REPAIR',
'email' => 'repair@gmail.com',
'password' => bcrypt('pass123'),
'img' => null,
'status' => 1,
'active_at' => date('Y-m-d H:i:s'),
'login_at' => date('Y-m-d H:i:s'),
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
],
[
'id' => 6,
'first_name' => 'Render',
'last_name' => 'project',
'username' => 'RENDER',
'email' => 'render@gmail.com',
'password' => bcrypt('pass123'),
'img' => null,
'status' => 1,
'active_at' => date('Y-m-d H:i:s'),
'login_at' => date('Y-m-d H:i:s'),
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
]
]);
}