-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `crm`
--

-- --------------------------------------------------------

--
-- Table structure for table `actionreq`
--

CREATE TABLE `actionreq` (
  `AcR_Code` int(11) NOT NULL DEFAULT 0,
  `AcR_Name` varchar(30) NOT NULL DEFAULT ' ',
  `AcR_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `AcR_Signature` int(11) NOT NULL DEFAULT 0,
  `AcR_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `actionreqdemo`
--

CREATE TABLE `actionreqdemo` (
  `AcR_Code` int(11) NOT NULL DEFAULT 0,
  `AcR_Name` varchar(30) NOT NULL DEFAULT ' ',
  `AcR_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `AcR_Signature` int(11) NOT NULL DEFAULT 0,
  `AcR_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `businesscat`
--

CREATE TABLE `businesscat` (
  `BuC_Code` int(11) NOT NULL DEFAULT 0,
  `BuC_Name` varchar(30) NOT NULL DEFAULT ' ',
  `BuC_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `BuC_Signature` int(11) NOT NULL DEFAULT 0,
  `BuC_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `businesscat`
--

INSERT INTO `businesscat` (`BuC_Code`, `BuC_Name`, `BuC_Co1_Code`, `BuC_Signature`, `BuC_DateModified`) VALUES
(1, 'Services', 1, 0, '2023-01-04 07:05:20'),
(2, 'Consulting', 1, 0, '2023-01-04 07:05:20');

-- --------------------------------------------------------

--
-- Table structure for table `businesscatdemo`
--

CREATE TABLE `businesscatdemo` (
  `BuC_Code` int(11) NOT NULL DEFAULT 0,
  `BuC_Name` varchar(30) NOT NULL DEFAULT ' ',
  `BuC_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `BuC_Signature` int(11) NOT NULL DEFAULT 0,
  `BuC_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `clients`
--

CREATE TABLE `clients` (
  `Cli_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Name` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_BusinessName` varchar(50) NOT NULL DEFAULT ' ',
  `Cli_BuC_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Address` varchar(250) NOT NULL DEFAULT ' ',
  `Cli_City` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_Website` varchar(100) NOT NULL DEFAULT ' ',
  `Cli_Email` varchar(50) NOT NULL DEFAULT ' ',
  `Cli_Phone` varchar(15) NOT NULL DEFAULT ' ',
  `Cli_ContactPerson` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_ContactPersonPhone` varchar(15) NOT NULL DEFAULT ' ',
  `Cli_Ref_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Signature` int(11) NOT NULL DEFAULT 0,
  `Cli_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `clients`
--

INSERT INTO `clients` (`Cli_Code`, `Cli_Name`, `Cli_BusinessName`, `Cli_BuC_Code`, `Cli_Address`, `Cli_City`, `Cli_Website`, `Cli_Email`, `Cli_Phone`, `Cli_ContactPerson`, `Cli_ContactPersonPhone`, `Cli_Ref_Code`, `Cli_Co1_Code`, `Cli_Signature`, `Cli_DateModified`) VALUES
(2, 'Ananya K S', 'sales & Services Ltd ', 1, 'Bangalore', 'Bangalore', 'https://www.ananyasalesandservices.in', 'Ananya@gmail.com', '9845423298', 'Ananya K Pandey', '9845423298', 1, 1, 5, '2023-01-04 07:09:47');

-- --------------------------------------------------------

--
-- Table structure for table `clientsdemo`
--

CREATE TABLE `clientsdemo` (
  `Cli_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Name` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_BusinessName` varchar(50) NOT NULL DEFAULT ' ',
  `Cli_BuC_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Address` varchar(250) NOT NULL DEFAULT ' ',
  `Cli_City` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_Website` varchar(100) NOT NULL DEFAULT ' ',
  `Cli_Email` varchar(50) NOT NULL DEFAULT ' ',
  `Cli_Phone` varchar(15) NOT NULL DEFAULT ' ',
  `Cli_ContactPerson` varchar(30) NOT NULL DEFAULT ' ',
  `Cli_ContactPersonPhone` varchar(15) NOT NULL DEFAULT ' ',
  `Cli_Ref_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Cli_Signature` int(11) NOT NULL DEFAULT 0,
  `Cli_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `company2`
--

CREATE TABLE `company2` (
  `Co2_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Co2_SlNo` int(11) NOT NULL DEFAULT 0,
  `Co2_Year` varchar(4) NOT NULL DEFAULT ''' ''',
  `Co2_Signature` int(11) NOT NULL DEFAULT 0,
  `Co2_DateModified` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `company2`
--

INSERT INTO `company2` (`Co2_Co1_Code`, `Co2_SlNo`, `Co2_Year`, `Co2_Signature`, `Co2_DateModified`) VALUES
(1, 1, '2022', 0, '2023-01-03 08:46:51');

-- --------------------------------------------------------

--
-- Table structure for table `company3renewed`
--

CREATE TABLE `company3renewed` (
  `Co3_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Co3_SlNo` int(11) NOT NULL DEFAULT 0,
  `Co3_StartDate` varchar(10) NOT NULL DEFAULT ' ',
  `Co3_EndDate` varchar(10) NOT NULL DEFAULT ' ',
  `Co3_RenewedOn` varchar(10) NOT NULL DEFAULT ' '
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `enquiry`
--

CREATE TABLE `enquiry` (
  `Enq_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_VouNo` varchar(8) NOT NULL DEFAULT ' ',
  `Enq_RequiredOn` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_Date` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_Cli_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_Value` varchar(100) NOT NULL DEFAULT ' ',
  `Enq_Notes` varchar(250) NOT NULL DEFAULT ' ',
  `Enq_Sta_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_ResEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AssignToEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AcR_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AttachFileName` varchar(100) NOT NULL DEFAULT ' ',
  `Enq_EnterByEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_SIgnature` int(11) NOT NULL DEFAULT 0,
  `Enq_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `Enq_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `enquiry`
--

INSERT INTO `enquiry` (`Enq_RecNo`, `Enq_VouNo`, `Enq_RequiredOn`, `Enq_Date`, `Enq_Cli_Code`, `Enq_Value`, `Enq_Notes`, `Enq_Sta_Code`, `Enq_ResEmp_Code`, `Enq_AssignToEmp_Code`, `Enq_AcR_Code`, `Enq_AttachFileName`, `Enq_EnterByEmp_Code`, `Enq_SIgnature`, `Enq_DateModified`, `Enq_Co1_Code`) VALUES
('0000000001', '00000001', '2023-01-04', '2023-01-04', 2, ' ', ' ', 0, 0, 1, 0, ' ', 0, 0, '2023-01-04 11:56:31', 1);

-- --------------------------------------------------------

--
-- Table structure for table `enquirydemo`
--

CREATE TABLE `enquirydemo` (
  `Enq_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_VouNo` varchar(8) NOT NULL DEFAULT ' ',
  `Enq_RequiredOn` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_Date` varchar(10) NOT NULL DEFAULT ' ',
  `Enq_Cli_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_Value` varchar(100) NOT NULL DEFAULT ' ',
  `Enq_Notes` varchar(250) NOT NULL DEFAULT ' ',
  `Enq_Sta_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_ResEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AssignToEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AcR_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_AttachFileName` varchar(100) NOT NULL DEFAULT ' ',
  `Enq_EnterByEmp_Code` int(11) NOT NULL DEFAULT 0,
  `Enq_SIgnature` int(11) NOT NULL DEFAULT 0,
  `Enq_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `Enq_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `entryrecnos`
--

CREATE TABLE `entryrecnos` (
  `Eny_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Mdl_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `entryrecnos`
--

INSERT INTO `entryrecnos` (`Eny_Code`, `Eny_Mdl_Code`, `Eny_Co1_Code`) VALUES
(1, 3, 0),
(0, 5, 0),
(0, 6, 0),
(0, 7, 0),
(1, 3, 1),
(0, 5, 1),
(0, 6, 1),
(1, 7, 1),
(0, 8, 0),
(2, 8, 1),
(0, 9, 0),
(1, 9, 1),
(0, 10, 0),
(1, 10, 1);

-- --------------------------------------------------------

--
-- Table structure for table `entryrecnosdemo`
--

CREATE TABLE `entryrecnosdemo` (
  `Eny_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Mdl_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `entryyearrecnos`
--

CREATE TABLE `entryyearrecnos` (
  `Eny_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Mdl_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Bra_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `entryyearrecnosdemo`
--

CREATE TABLE `entryyearrecnosdemo` (
  `Eny_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Mdl_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Bra_Code` int(11) NOT NULL DEFAULT 0,
  `Eny_Co1_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `followup`
--

CREATE TABLE `followup` (
  `FoU_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_Date` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_FollowUpOn` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_ContactPerson` varchar(30) NOT NULL DEFAULT ' ',
  `FoU_Signature` int(11) NOT NULL DEFAULT 0,
  `FoU_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `FoU_Enq_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_Cli_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_Notes` varchar(250) NOT NULL DEFAULT ' ',
  `FoU_Sta_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_NextFollowUoOn` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_AttachFileName` varchar(100) NOT NULL DEFAULT ' ',
  `FoU_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_AcR_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_FollowUpByEmp_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `followup`
--

INSERT INTO `followup` (`FoU_RecNo`, `FoU_Date`, `FoU_FollowUpOn`, `FoU_ContactPerson`, `FoU_Signature`, `FoU_DateModified`, `FoU_Enq_RecNo`, `FoU_Cli_Code`, `FoU_Notes`, `FoU_Sta_Code`, `FoU_NextFollowUoOn`, `FoU_AttachFileName`, `FoU_Co1_Code`, `FoU_AcR_Code`, `FoU_FollowUpByEmp_Code`) VALUES
('0000000001', '2023-01-05', '2023-01-05', '', 0, '2023-01-05 06:24:34', '0000000001', 2, 'Person not available now', 0, '2023-01-06', '', 1, 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `followupdemo`
--

CREATE TABLE `followupdemo` (
  `FoU_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_Date` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_FollowUpOn` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_ContactPerson` varchar(30) NOT NULL DEFAULT ' ',
  `FoU_Signature` int(11) NOT NULL DEFAULT 0,
  `FoU_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `FoU_Enq_RecNo` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_Cli_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_Notes` varchar(250) NOT NULL DEFAULT ' ',
  `FoU_Sta_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_NextFollowUoOn` varchar(10) NOT NULL DEFAULT ' ',
  `FoU_AttachFileName` varchar(100) NOT NULL DEFAULT ' ',
  `FoU_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_AcR_Code` int(11) NOT NULL DEFAULT 0,
  `FoU_FollowUpByEmp_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `Mdl_Code` int(11) NOT NULL DEFAULT 0,
  `Mdl_Name` varchar(50) NOT NULL DEFAULT '',
  `Mdl_IsTran` varchar(1) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`Mdl_Code`, `Mdl_Name`, `Mdl_IsTran`) VALUES
(3, 'Company', 'N'),
(5, 'Enquiry', 'N'),
(6, 'Todo', 'N'),
(7, 'Employees', 'N'),
(8, 'ClientEntry', 'N'),
(9, 'ReferenceEntry', 'N'),
(10, 'FollowUp', 'N');

-- --------------------------------------------------------

--
-- Table structure for table `referenceby`
--

CREATE TABLE `referenceby` (
  `Ref_Code` int(11) NOT NULL DEFAULT 0,
  `Ref_Name` varchar(30) NOT NULL DEFAULT ' ',
  `Ref_CreatedOn` varchar(10) NOT NULL DEFAULT ' ',
  `Ref_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Ref_Signature` int(11) NOT NULL DEFAULT 0,
  `Ref_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `referenceby`
--

INSERT INTO `referenceby` (`Ref_Code`, `Ref_Name`, `Ref_CreatedOn`, `Ref_Co1_Code`, `Ref_Signature`, `Ref_DateModified`) VALUES
(1, 'Prathap', '2023-01-04', 1, 0, '2023-01-04 07:07:59');

-- --------------------------------------------------------

--
-- Table structure for table `referencebydemo`
--

CREATE TABLE `referencebydemo` (
  `Ref_Code` int(11) NOT NULL DEFAULT 0,
  `Ref_Name` varchar(30) NOT NULL DEFAULT ' ',
  `Ref_CreatedOn` varchar(10) NOT NULL DEFAULT ' ',
  `Ref_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Ref_Signature` int(11) NOT NULL DEFAULT 0,
  `Ref_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `status`
--

CREATE TABLE `status` (
  `Sta_Code` int(11) NOT NULL DEFAULT 0,
  `Sta_Status` varchar(30) NOT NULL DEFAULT ' ',
  `Sta_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Sta_Signature` int(11) NOT NULL DEFAULT 0,
  `Sta_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `statusdemo`
--

CREATE TABLE `statusdemo` (
  `Sta_Code` int(11) NOT NULL DEFAULT 0,
  `Sta_Status` varchar(30) NOT NULL DEFAULT ' ',
  `Sta_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `Sta_Signature` int(11) NOT NULL DEFAULT 0,
  `Sta_DateModified` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `todo`
--

CREATE TABLE `todo` (
  `ToD_RecNo` int(11) NOT NULL DEFAULT 0,
  `ToD_Date` varchar(10) NOT NULL DEFAULT '',
  `ToD_ToDoText` varchar(250) NOT NULL DEFAULT ' ',
  `ToD_ToDoDate` varchar(10) NOT NULL DEFAULT ' ',
  `ToD_Status` varchar(1) NOT NULL DEFAULT ' ',
  `ToD_Signature` int(11) NOT NULL DEFAULT 0,
  `ToD_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `ToD_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `ToD_Emp_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `tododemo`
--

CREATE TABLE `tododemo` (
  `ToD_RecNo` int(11) NOT NULL DEFAULT 0,
  `ToD_Date` varchar(10) NOT NULL DEFAULT '',
  `ToD_ToDoText` varchar(250) NOT NULL DEFAULT ' ',
  `ToD_ToDoDate` varchar(10) NOT NULL DEFAULT ' ',
  `ToD_Status` varchar(1) NOT NULL DEFAULT ' ',
  `ToD_Signature` int(11) NOT NULL DEFAULT 0,
  `ToD_DateModified` timestamp NOT NULL DEFAULT current_timestamp(),
  `ToD_Co1_Code` int(11) NOT NULL DEFAULT 0,
  `ToD_Emp_Code` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
COMMIT;

