Sql script for output report
Showing
2 changed files
with
140 additions
and
0 deletions
custom/db/output_products.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: Jan 15, 2019 at 12:13 PM | ||
| 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: `flexydial_hdfc_vrm` | ||
| 21 | -- | ||
| 22 | |||
| 23 | -- -------------------------------------------------------- | ||
| 24 | |||
| 25 | -- | ||
| 26 | -- Table structure for table `output_products` | ||
| 27 | -- | ||
| 28 | |||
| 29 | DROP TABLE IF EXISTS `output_products`; | ||
| 30 | CREATE TABLE `output_products` ( | ||
| 31 | `id` bigint(11) NOT NULL, | ||
| 32 | `Name` varchar(50) NOT NULL, | ||
| 33 | `Status` int(1) NOT NULL, | ||
| 34 | `created_at` datetime NOT NULL, | ||
| 35 | `updated_at` datetime NOT NULL | ||
| 36 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| 37 | |||
| 38 | -- | ||
| 39 | -- Indexes for dumped tables | ||
| 40 | -- | ||
| 41 | |||
| 42 | -- | ||
| 43 | -- Indexes for table `output_products` | ||
| 44 | -- | ||
| 45 | ALTER TABLE `output_products` | ||
| 46 | ADD PRIMARY KEY (`id`); | ||
| 47 | |||
| 48 | -- | ||
| 49 | -- AUTO_INCREMENT for dumped tables | ||
| 50 | -- | ||
| 51 | |||
| 52 | -- | ||
| 53 | -- AUTO_INCREMENT for table `output_products` | ||
| 54 | -- | ||
| 55 | ALTER TABLE `output_products` | ||
| 56 | MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT; | ||
| 57 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| 58 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
| 59 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
custom/db/output_report.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: Jan 15, 2019 at 12:14 PM | ||
| 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: `flexydial_hdfc_vrm` | ||
| 21 | -- | ||
| 22 | |||
| 23 | -- -------------------------------------------------------- | ||
| 24 | |||
| 25 | -- | ||
| 26 | -- Table structure for table `output_report` | ||
| 27 | -- | ||
| 28 | |||
| 29 | DROP TABLE IF EXISTS `output_report`; | ||
| 30 | CREATE TABLE `output_report` ( | ||
| 31 | `id` bigint(20) NOT NULL, | ||
| 32 | `user_id` varchar(20) NOT NULL, | ||
| 33 | `user_name` varchar(200) NOT NULL, | ||
| 34 | `date` date NOT NULL, | ||
| 35 | `call_attempts` int(11) NOT NULL, | ||
| 36 | `call_contacts` int(11) NOT NULL, | ||
| 37 | `call_unique_contacts` int(11) NOT NULL, | ||
| 38 | `income` int(11) NOT NULL, | ||
| 39 | `product_id` bigint(11) NOT NULL, | ||
| 40 | `product_name` text NOT NULL, | ||
| 41 | `lead_generated` int(11) NOT NULL, | ||
| 42 | `lead_generated_amount` decimal(13,2) NOT NULL, | ||
| 43 | `lead_closed` int(11) NOT NULL, | ||
| 44 | `lead_closed_amount` decimal(13,2) NOT NULL, | ||
| 45 | `created_at` datetime NOT NULL, | ||
| 46 | `updated_at` datetime NOT NULL | ||
| 47 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| 48 | |||
| 49 | -- | ||
| 50 | -- Indexes for dumped tables | ||
| 51 | -- | ||
| 52 | |||
| 53 | -- | ||
| 54 | -- Indexes for table `output_report` | ||
| 55 | -- | ||
| 56 | ALTER TABLE `output_report` | ||
| 57 | ADD PRIMARY KEY (`id`), | ||
| 58 | ADD KEY `fk_product_id` (`product_id`); | ||
| 59 | |||
| 60 | -- | ||
| 61 | -- AUTO_INCREMENT for dumped tables | ||
| 62 | -- | ||
| 63 | |||
| 64 | -- | ||
| 65 | -- AUTO_INCREMENT for table `output_report` | ||
| 66 | -- | ||
| 67 | ALTER TABLE `output_report` | ||
| 68 | MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; | ||
| 69 | -- | ||
| 70 | -- Constraints for dumped tables | ||
| 71 | -- | ||
| 72 | |||
| 73 | -- | ||
| 74 | -- Constraints for table `output_report` | ||
| 75 | -- | ||
| 76 | ALTER TABLE `output_report` | ||
| 77 | ADD CONSTRAINT `fk_product_id` FOREIGN KEY (`product_id`) REFERENCES `output_products` (`id`); | ||
| 78 | |||
| 79 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| 80 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
| 81 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
-
Please register or sign in to post a comment