Migration and Tables added with New changes
Showing
4 changed files
with
330 additions
and
5 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -103,9 +103,58 @@ class FrameworkDbSchema extends Migration { | ... | @@ -103,9 +103,58 @@ class FrameworkDbSchema extends Migration { |
| 103 | $table->string('userremarks', 5000); | 103 | $table->string('userremarks', 5000); |
| 104 | $table->longText('userdata'); | 104 | $table->longText('userdata'); |
| 105 | $table->string('group', 200)->index('group'); | 105 | $table->string('group', 200)->index('group'); |
| 106 | $table->integer('attempt'); | ||
| 107 | $table->string('priority', 10); | ||
| 108 | $table->longText('question'); | ||
| 106 | }); | 109 | }); |
| 107 | DB::statement("ALTER TABLE `crmcalls` ADD INDEX(`created_at`);"); | 110 | DB::statement("ALTER TABLE `crmcalls` ADD INDEX(`created_at`);"); |
| 108 | 111 | ||
| 112 | Schema::create('crmcalls_archive', function(Blueprint $table) | ||
| 113 | { | ||
| 114 | $table->bigIncrements('id'); | ||
| 115 | $table->timestamps(); | ||
| 116 | $table->string('number', 100)->index('number'); | ||
| 117 | $table->integer('user_id')->index('user_id'); | ||
| 118 | $table->integer('sipid_id'); | ||
| 119 | $table->integer('crm_id')->index('crm_id'); | ||
| 120 | $table->string('client', 200)->index('campaign_id'); | ||
| 121 | $table->string('department', 200)->index('list_id'); | ||
| 122 | $table->string('state', 50); | ||
| 123 | $table->string('hsource', 100); | ||
| 124 | $table->string('type', 50); | ||
| 125 | $table->string('statuscode', 20); | ||
| 126 | $table->string('status', 100)->index('status'); | ||
| 127 | $table->string('substatus', 100); | ||
| 128 | $table->integer('dialline_id'); | ||
| 129 | $table->string('did', 50)->index('did'); | ||
| 130 | $table->bigInteger('ts_Wait'); | ||
| 131 | $table->bigInteger('ts_Call'); | ||
| 132 | $table->bigInteger('ts_Talk'); | ||
| 133 | $table->bigInteger('ts_Recstart'); | ||
| 134 | $table->bigInteger('ts_Recend'); | ||
| 135 | $table->bigInteger('ts_Dispo'); | ||
| 136 | $table->bigInteger('ts_Close'); | ||
| 137 | $table->integer('waitSec'); | ||
| 138 | $table->integer('callSec'); | ||
| 139 | $table->integer('talkSec'); | ||
| 140 | $table->integer('recstartSec'); | ||
| 141 | $table->integer('recendSec'); | ||
| 142 | $table->integer('dispoSec'); | ||
| 143 | $table->longText('data'); | ||
| 144 | $table->integer('recsize'); | ||
| 145 | $table->string('uniqueid', 100)->index('uniqueid'); | ||
| 146 | $table->string('userstatus', 200)->index('userstatus'); | ||
| 147 | $table->string('usersubstatus', 200); | ||
| 148 | $table->dateTime('usercallback'); | ||
| 149 | $table->string('userremarks', 5000); | ||
| 150 | $table->longText('userdata'); | ||
| 151 | $table->string('group', 200)->index('group'); | ||
| 152 | $table->integer('attempt'); | ||
| 153 | $table->string('priority', 10); | ||
| 154 | $table->longText('question'); | ||
| 155 | }); | ||
| 156 | DB::statement("ALTER TABLE `crmcalls_archive` ADD INDEX(`created_at`);"); | ||
| 157 | |||
| 109 | Schema::create('crmcampaigns', function(Blueprint $table) | 158 | Schema::create('crmcampaigns', function(Blueprint $table) |
| 110 | { | 159 | { |
| 111 | $table->bigIncrements('id'); | 160 | $table->bigIncrements('id'); |
| ... | @@ -365,6 +414,13 @@ class FrameworkDbSchema extends Migration { | ... | @@ -365,6 +414,13 @@ class FrameworkDbSchema extends Migration { |
| 365 | $table->dateTime('dialer_lastcall')->index('dialer_lastcall'); | 414 | $table->dateTime('dialer_lastcall')->index('dialer_lastcall'); |
| 366 | $table->integer('crmlist_id')->index('crmlist_id'); | 415 | $table->integer('crmlist_id')->index('crmlist_id'); |
| 367 | $table->string('group', 200)->index('group'); | 416 | $table->string('group', 200)->index('group'); |
| 417 | $table->string('bttc', 20); | ||
| 418 | $table->string('service_vs_product', 30); | ||
| 419 | $table->string('resolution', 30); | ||
| 420 | $table->string('satisfaction', 30); | ||
| 421 | $table->string('final_call_assessment', 30); | ||
| 422 | $table->longText('question'); | ||
| 423 | $table->string('mf_isa', 30); | ||
| 368 | }); | 424 | }); |
| 369 | DB::statement('ALTER TABLE `records` ADD FULLTEXT(`peopledata`);'); | 425 | DB::statement('ALTER TABLE `records` ADD FULLTEXT(`peopledata`);'); |
| 370 | 426 | ||
| ... | @@ -529,6 +585,15 @@ class FrameworkDbSchema extends Migration { | ... | @@ -529,6 +585,15 @@ class FrameworkDbSchema extends Migration { |
| 529 | $table->string('clients', 10000); | 585 | $table->string('clients', 10000); |
| 530 | }); | 586 | }); |
| 531 | 587 | ||
| 588 | Schema::create('supervisor_message', function(Blueprint $table) { | ||
| 589 | $table->bigIncrements("id"); | ||
| 590 | $table->timestamps(); | ||
| 591 | $table->string("sup_id","20"); | ||
| 592 | $table->string("agents","1000"); | ||
| 593 | $table->string("message","500"); | ||
| 594 | $table->string("status","1000"); | ||
| 595 | }); | ||
| 596 | |||
| 532 | Schema::create('userlogs', function(Blueprint $table) | 597 | Schema::create('userlogs', function(Blueprint $table) |
| 533 | { | 598 | { |
| 534 | $table->bigIncrements('id'); | 599 | $table->bigIncrements('id'); |
| ... | @@ -572,8 +637,111 @@ class FrameworkDbSchema extends Migration { | ... | @@ -572,8 +637,111 @@ class FrameworkDbSchema extends Migration { |
| 572 | $table->string('exten', 50); | 637 | $table->string('exten', 50); |
| 573 | $table->string('extencontext', 100); | 638 | $table->string('extencontext', 100); |
| 574 | $table->string('manager', 200); | 639 | $table->string('manager', 200); |
| 640 | $table->string('dialmode_assign', 20); | ||
| 575 | }); | 641 | }); |
| 576 | 642 | ||
| 643 | Schema::create('agent_notes', function(Blueprint $table) { | ||
| 644 | $table->bigIncrements('id'); | ||
| 645 | $table->timestamps(); | ||
| 646 | $table->integer('user_id'); | ||
| 647 | $table->string('field_1', 100); | ||
| 648 | $table->string('field_2', 100); | ||
| 649 | $table->string('field_3', 100); | ||
| 650 | $table->string('field_4', 100); | ||
| 651 | $table->string('field_5', 100); | ||
| 652 | $table->string('field_6', 100); | ||
| 653 | $table->string('field_7', 100); | ||
| 654 | $table->string('field_8', 100); | ||
| 655 | $table->string('field_9', 100); | ||
| 656 | $table->string('field_10', 100); | ||
| 657 | $table->string('field_11', 100); | ||
| 658 | $table->string('field_12', 100); | ||
| 659 | $table->string('field_13', 100); | ||
| 660 | $table->string('field_14', 100); | ||
| 661 | $table->string('field_15', 100); | ||
| 662 | $table->string('field_16', 100); | ||
| 663 | $table->string('field_17', 100); | ||
| 664 | $table->string('field_18', 100); | ||
| 665 | $table->string('field_19', 100); | ||
| 666 | $table->string('field_20', 100); | ||
| 667 | $table->string('field_21', 100); | ||
| 668 | $table->string('field_22', 100); | ||
| 669 | $table->string('field_23', 100); | ||
| 670 | $table->string('field_24', 100); | ||
| 671 | $table->string('field_25', 100); | ||
| 672 | $table->string('field_26', 100); | ||
| 673 | $table->string('field_27', 100); | ||
| 674 | $table->string('field_28', 100); | ||
| 675 | $table->string('field_29', 100); | ||
| 676 | $table->string('field_30', 100); | ||
| 677 | $table->string('field_31', 100); | ||
| 678 | $table->string('field_32', 100); | ||
| 679 | $table->string('field_33', 100); | ||
| 680 | $table->string('field_34', 100); | ||
| 681 | $table->string('field_35', 100); | ||
| 682 | $table->string('field_36', 100); | ||
| 683 | $table->string('field_37', 100); | ||
| 684 | $table->string('field_38', 100); | ||
| 685 | $table->string('field_39', 100); | ||
| 686 | $table->string('field_40', 100); | ||
| 687 | $table->string('field_41', 100); | ||
| 688 | $table->string('field_42', 100); | ||
| 689 | $table->string('field_43', 100); | ||
| 690 | $table->string('field_44', 100); | ||
| 691 | $table->string('field_45', 100); | ||
| 692 | $table->string('field_46', 100); | ||
| 693 | $table->string('field_47', 100); | ||
| 694 | $table->string('field_48', 100); | ||
| 695 | $table->string('field_49', 100); | ||
| 696 | $table->string('field_50', 100); | ||
| 697 | }); | ||
| 698 | |||
| 699 | Schema::create('full_remark', function(Blueprint $table) { | ||
| 700 | $table->bigIncrements('id'); | ||
| 701 | $table->timestamps(); | ||
| 702 | $table->integer('call_id')->index('call_id'); | ||
| 703 | $table->string('fullremark', 5000); | ||
| 704 | }); | ||
| 705 | |||
| 706 | Schema::create('authentication_questions', function(Blueprint $table) { | ||
| 707 | $table->bigIncrements('id'); | ||
| 708 | $table->timestamps(); | ||
| 709 | $table->integer('question_no'); | ||
| 710 | $table->integer('group_id'); | ||
| 711 | $table->string('question', 200); | ||
| 712 | $table->string('opt_1', 100); | ||
| 713 | $table->string('opt_2', 100); | ||
| 714 | $table->string('opt_3', 100); | ||
| 715 | $table->string('opt_4', 100); | ||
| 716 | }); | ||
| 717 | |||
| 718 | Schema::create('question', function(Blueprint $table) { | ||
| 719 | $table->bigIncrements('id'); | ||
| 720 | $table->timestamps(); | ||
| 721 | $table->integer('question_no'); | ||
| 722 | $table->string('questions', 500); | ||
| 723 | $table->string('opt_1', 200); | ||
| 724 | $table->string('opt_2', 200); | ||
| 725 | $table->string('opt_3', 200); | ||
| 726 | $table->string('opt_4', 200); | ||
| 727 | $table->string('opt_5', 200); | ||
| 728 | $table->string('opt_6', 200); | ||
| 729 | $table->string('opt_7', 200); | ||
| 730 | $table->string('opt_8', 200); | ||
| 731 | $table->string('opt_9', 200); | ||
| 732 | $table->string('opt_10', 200); | ||
| 733 | $table->string('type', 100); | ||
| 734 | $table->string('compulsory_qes', 30); | ||
| 735 | }); | ||
| 736 | |||
| 737 | Schema::create('question_tree', function(Blueprint $table) { | ||
| 738 | $table->bigIncrements('id'); | ||
| 739 | $table->timestamps(); | ||
| 740 | $table->integer('parent_id'); | ||
| 741 | $table->string('parent_opt', 200); | ||
| 742 | $table->integer('question_id'); | ||
| 743 | $table->integer('priority'); | ||
| 744 | }); | ||
| 577 | 745 | ||
| 578 | $server=Config::get("app.app_ip"); | 746 | $server=Config::get("app.app_ip"); |
| 579 | 747 | ||
| ... | @@ -687,10 +855,9 @@ class FrameworkDbSchema extends Migration { | ... | @@ -687,10 +855,9 @@ class FrameworkDbSchema extends Migration { |
| 687 | 855 | ||
| 688 | \DB::table('sipids')->delete(); | 856 | \DB::table('sipids')->delete(); |
| 689 | $cnt=0; | 857 | $cnt=0; |
| 690 | for($j=1;$j<=20;$j++) | 858 | |
| 691 | { | ||
| 692 | $sipids=array(); | 859 | $sipids=array(); |
| 693 | for($i=(($j*1000)+1);$i<=(($j*1000)+1000);$i++) | 860 | for($i=1;$i<=1000;$i++) |
| 694 | { | 861 | { |
| 695 | $sipids[$cnt++]=array( | 862 | $sipids[$cnt++]=array( |
| 696 | 'id' => $i, | 863 | 'id' => $i, |
| ... | @@ -705,7 +872,6 @@ class FrameworkDbSchema extends Migration { | ... | @@ -705,7 +872,6 @@ class FrameworkDbSchema extends Migration { |
| 705 | ); | 872 | ); |
| 706 | } | 873 | } |
| 707 | \DB::table('sipids')->insert($sipids); | 874 | \DB::table('sipids')->insert($sipids); |
| 708 | } | ||
| 709 | 875 | ||
| 710 | 876 | ||
| 711 | \DB::table('users')->delete(); | 877 | \DB::table('users')->delete(); |
| ... | @@ -714,7 +880,7 @@ class FrameworkDbSchema extends Migration { | ... | @@ -714,7 +880,7 @@ class FrameworkDbSchema extends Migration { |
| 714 | array ( | 880 | array ( |
| 715 | 'id' => 1, | 881 | 'id' => 1, |
| 716 | 'username' => 'admin', | 882 | 'username' => 'admin', |
| 717 | 'password' => '$2y$10$rMIU1gBhkyJ4eGSTLOzpJu8AcWDxqkh.P1VKtxxpyGI2uoYRrsyIq', | 883 | 'password' => '$2y$10$3IMlygICC0e0A0yZpbes.OiWPg41e0r71MkUOLRbSH5bNPlFqOayS', |
| 718 | 'fullname' => 'Admin', | 884 | 'fullname' => 'Admin', |
| 719 | 'email' => '[email protected]', | 885 | 'email' => '[email protected]', |
| 720 | 'status' => 'Active', | 886 | 'status' => 'Active', | ... | ... |
complaint_fields.sql
0 → 100644
| 1 | -- phpMyAdmin SQL Dump | ||
| 2 | -- version 4.5.3.1 | ||
| 3 | -- http://www.phpmyadmin.net | ||
| 4 | -- | ||
| 5 | -- Host: localhost | ||
| 6 | -- Generation Time: Apr 24, 2018 at 10:49 AM | ||
| 7 | -- Server version: 10.0.28-MariaDB | ||
| 8 | -- PHP Version: 5.6.29 | ||
| 9 | |||
| 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
| 11 | SET time_zone = "+00:00"; | ||
| 12 | |||
| 13 | |||
| 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
| 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
| 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
| 17 | /*!40101 SET NAMES utf8mb4 */; | ||
| 18 | |||
| 19 | -- | ||
| 20 | -- Database: `new_kstych_flexydial` | ||
| 21 | -- | ||
| 22 | |||
| 23 | -- -------------------------------------------------------- | ||
| 24 | |||
| 25 | -- | ||
| 26 | -- Table structure for table `complaint_fields` | ||
| 27 | -- | ||
| 28 | |||
| 29 | CREATE TABLE `complaint_fields` ( | ||
| 30 | `id` bigint(20) NOT NULL, | ||
| 31 | `cust_band` varchar(5) NOT NULL, | ||
| 32 | `cust_type` varchar(50) NOT NULL, | ||
| 33 | `source_of_info` varchar(50) NOT NULL, | ||
| 34 | `service_type` varchar(50) NOT NULL, | ||
| 35 | `priority` varchar(10) NOT NULL, | ||
| 36 | `category` varchar(200) NOT NULL, | ||
| 37 | `sub_category` varchar(200) NOT NULL, | ||
| 38 | `resolving_branch` varchar(100) NOT NULL, | ||
| 39 | `cust_city` varchar(50) NOT NULL, | ||
| 40 | `acknowledge` varchar(10) NOT NULL, | ||
| 41 | `resolve_class_unit` varchar(50) NOT NULL, | ||
| 42 | `rbb` varchar(100) NOT NULL, | ||
| 43 | `non_rbb` varchar(100) NOT NULL, | ||
| 44 | `logging_branch_name` varchar(20) NOT NULL, | ||
| 45 | `logging_branch_code` varchar(20) NOT NULL, | ||
| 46 | `resolving_branch_code` int(20) NOT NULL, | ||
| 47 | `resolving_branch_w_code` varchar(200) NOT NULL, | ||
| 48 | `logging_branch_w_code` varchar(200) NOT NULL | ||
| 49 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| 50 | |||
| 51 | -- | ||
| 52 | -- Indexes for dumped tables | ||
| 53 | -- | ||
| 54 | |||
| 55 | -- | ||
| 56 | -- Indexes for table `complaint_fields` | ||
| 57 | -- | ||
| 58 | ALTER TABLE `complaint_fields` | ||
| 59 | ADD PRIMARY KEY (`id`); | ||
| 60 | |||
| 61 | -- | ||
| 62 | -- AUTO_INCREMENT for dumped tables | ||
| 63 | -- | ||
| 64 | |||
| 65 | -- | ||
| 66 | -- AUTO_INCREMENT for table `complaint_fields` | ||
| 67 | -- | ||
| 68 | ALTER TABLE `complaint_fields` | ||
| 69 | MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; | ||
| 70 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| 71 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
| 72 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
questionaire_details.sql
0 → 100644
| 1 | -- phpMyAdmin SQL Dump | ||
| 2 | -- version 4.5.3.1 | ||
| 3 | -- http://www.phpmyadmin.net | ||
| 4 | -- | ||
| 5 | -- Host: localhost | ||
| 6 | -- Generation Time: Apr 24, 2018 at 10:49 AM | ||
| 7 | -- Server version: 10.0.28-MariaDB | ||
| 8 | -- PHP Version: 5.6.29 | ||
| 9 | |||
| 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
| 11 | SET time_zone = "+00:00"; | ||
| 12 | |||
| 13 | |||
| 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
| 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
| 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
| 17 | /*!40101 SET NAMES utf8mb4 */; | ||
| 18 | |||
| 19 | -- | ||
| 20 | -- Database: `new_kstych_flexydial` | ||
| 21 | -- | ||
| 22 | |||
| 23 | -- -------------------------------------------------------- | ||
| 24 | |||
| 25 | -- | ||
| 26 | -- Table structure for table `questionaire_details` | ||
| 27 | -- | ||
| 28 | |||
| 29 | CREATE TABLE `questionaire_details` ( | ||
| 30 | `id` bigint(10) NOT NULL, | ||
| 31 | `created_at` timestamp NULL DEFAULT NULL, | ||
| 32 | `updated_at` timestamp NULL DEFAULT NULL, | ||
| 33 | `user_id` varchar(10) NOT NULL, | ||
| 34 | `cust_id` varchar(20) NOT NULL, | ||
| 35 | `call_id` varchar(20) NOT NULL, | ||
| 36 | `name` varchar(50) NOT NULL, | ||
| 37 | `number` bigint(20) NOT NULL, | ||
| 38 | `question_time` timestamp NULL DEFAULT NULL, | ||
| 39 | `question` int(10) NOT NULL, | ||
| 40 | `primary_question` varchar(1500) NOT NULL, | ||
| 41 | `primary_response` varchar(500) NOT NULL, | ||
| 42 | `primary_text` varchar(500) NOT NULL, | ||
| 43 | `followup1_question` varchar(1500) NOT NULL, | ||
| 44 | `followup1_response` varchar(500) NOT NULL, | ||
| 45 | `followup1_text` varchar(500) NOT NULL, | ||
| 46 | `followup2_question` varchar(1500) NOT NULL, | ||
| 47 | `followup2_response` varchar(500) NOT NULL, | ||
| 48 | `followup2_text` varchar(500) NOT NULL, | ||
| 49 | `followup3_question` varchar(1500) NOT NULL, | ||
| 50 | `followup3_response` varchar(500) NOT NULL, | ||
| 51 | `followup3_text` varchar(500) NOT NULL, | ||
| 52 | `followup4_question` varchar(1500) NOT NULL, | ||
| 53 | `followup4_response` varchar(500) NOT NULL, | ||
| 54 | `followup4_text` varchar(500) NOT NULL, | ||
| 55 | `followup5_question` varchar(1500) NOT NULL, | ||
| 56 | `followup5_response` varchar(500) NOT NULL, | ||
| 57 | `followup5_text` varchar(500) NOT NULL, | ||
| 58 | `followup6_question` varchar(1500) NOT NULL, | ||
| 59 | `followup6_response` varchar(500) NOT NULL, | ||
| 60 | `followup6_text` varchar(500) NOT NULL, | ||
| 61 | `followup7_question` varchar(1500) NOT NULL, | ||
| 62 | `followup7_response` varchar(500) NOT NULL, | ||
| 63 | `followup7_text` varchar(500) NOT NULL | ||
| 64 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| 65 | |||
| 66 | -- | ||
| 67 | -- Indexes for dumped tables | ||
| 68 | -- | ||
| 69 | |||
| 70 | -- | ||
| 71 | -- Indexes for table `questionaire_details` | ||
| 72 | -- | ||
| 73 | ALTER TABLE `questionaire_details` | ||
| 74 | ADD PRIMARY KEY (`id`); | ||
| 75 | |||
| 76 | -- | ||
| 77 | -- AUTO_INCREMENT for dumped tables | ||
| 78 | -- | ||
| 79 | |||
| 80 | -- | ||
| 81 | -- AUTO_INCREMENT for table `questionaire_details` | ||
| 82 | -- | ||
| 83 | ALTER TABLE `questionaire_details` | ||
| 84 | MODIFY `id` bigint(10) NOT NULL AUTO_INCREMENT; | ||
| 85 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| 86 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
| 87 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
-
Please register or sign in to post a comment