00caef6d by prami

Sql script for output report

1 parent 817eb196
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 15, 2019 at 12:13 PM
-- Server version: 10.0.28-MariaDB
-- PHP Version: 5.6.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `flexydial_hdfc_vrm`
--
-- --------------------------------------------------------
--
-- Table structure for table `output_products`
--
DROP TABLE IF EXISTS `output_products`;
CREATE TABLE `output_products` (
`id` bigint(11) NOT NULL,
`Name` varchar(50) NOT NULL,
`Status` int(1) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `output_products`
--
ALTER TABLE `output_products`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `output_products`
--
ALTER TABLE `output_products`
MODIFY `id` bigint(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 15, 2019 at 12:14 PM
-- Server version: 10.0.28-MariaDB
-- PHP Version: 5.6.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `flexydial_hdfc_vrm`
--
-- --------------------------------------------------------
--
-- Table structure for table `output_report`
--
DROP TABLE IF EXISTS `output_report`;
CREATE TABLE `output_report` (
`id` bigint(20) NOT NULL,
`user_id` varchar(20) NOT NULL,
`user_name` varchar(200) NOT NULL,
`date` date NOT NULL,
`call_attempts` int(11) NOT NULL,
`call_contacts` int(11) NOT NULL,
`call_unique_contacts` int(11) NOT NULL,
`income` int(11) NOT NULL,
`product_id` bigint(11) NOT NULL,
`product_name` text NOT NULL,
`lead_generated` int(11) NOT NULL,
`lead_generated_amount` decimal(13,2) NOT NULL,
`lead_closed` int(11) NOT NULL,
`lead_closed_amount` decimal(13,2) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `output_report`
--
ALTER TABLE `output_report`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_product_id` (`product_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `output_report`
--
ALTER TABLE `output_report`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `output_report`
--
ALTER TABLE `output_report`
ADD CONSTRAINT `fk_product_id` FOREIGN KEY (`product_id`) REFERENCES `output_products` (`id`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!