output_report.sql
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 15, 2019 at 12:35 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`
--
CREATE TABLE `output_report` (
`id` bigint(20) NOT NULL,
`user_id` int(11) 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` varchar(50) 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 */;