-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 25, 2026 at 06:21 AM
-- Server version: 10.11.15-MariaDB-cll-lve
-- PHP Version: 8.4.16

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `logicweb_muzammil`
--

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

--
-- Table structure for table `bank_accounts`
--

CREATE TABLE `bank_accounts` (
  `id` int(11) NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `account_holder` varchar(255) NOT NULL,
  `account_number` varchar(100) NOT NULL,
  `ifsc` varchar(50) DEFAULT NULL,
  `branch` varchar(255) DEFAULT NULL,
  `swift` varchar(50) DEFAULT NULL,
  `is_default` tinyint(1) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `bank_accounts`
--

INSERT INTO `bank_accounts` (`id`, `bank_name`, `account_holder`, `account_number`, `ifsc`, `branch`, `swift`, `is_default`, `created_at`) VALUES
(1, 'ICICI', 'SIMS TECHNOLABS', '730305500151', 'ICIC0007303', 'ULCCS', '', 1, '2026-03-03 10:58:07');

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

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

CREATE TABLE `clients` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `company` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `whatsapp` varchar(50) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `country` varchar(100) DEFAULT 'India',
  `gst` varchar(50) DEFAULT NULL,
  `pan` varchar(20) DEFAULT NULL,
  `logo` varchar(500) DEFAULT NULL,
  `currency` varchar(10) DEFAULT 'INR',
  `currency_symbol` varchar(10) DEFAULT 'Rs',
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

INSERT INTO `clients` (`id`, `name`, `company`, `email`, `phone`, `whatsapp`, `address`, `city`, `state`, `country`, `gst`, `pan`, `logo`, `currency`, `currency_symbol`, `notes`, `created_at`) VALUES
(3, 'Kerala Vision', 'Kerala Vision', 'info@kerlavision.com', '+919746588896', '+919746588896', 'Thottungal House\r\nKC Road Tirurangadi', 'Malappuram', 'Kerala', 'India', '', '', NULL, 'INR', 'Rs', '', '2026-03-03 11:27:01'),
(4, 'muzmm', '123', '', '', '', '', '', '', 'India', '', '', NULL, 'INR', 'Rs', '', '2026-03-03 12:18:14'),
(5, 'test', '', '', '', '', '', '', '', 'India', '', '', NULL, 'INR', 'Rs', '', '2026-03-07 07:08:56');

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

--
-- Table structure for table `invoices`
--

CREATE TABLE `invoices` (
  `id` int(11) NOT NULL,
  `invoice_number` varchar(50) NOT NULL,
  `client_id` int(11) NOT NULL,
  `invoice_date` date NOT NULL,
  `due_date` date DEFAULT NULL,
  `currency` varchar(10) DEFAULT 'INR',
  `symbol` varchar(10) DEFAULT 'Rs',
  `subtotal` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `discount_amount` decimal(15,2) DEFAULT 0.00,
  `gst_enabled` tinyint(1) DEFAULT 0,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `amount_paid` decimal(15,2) DEFAULT 0.00,
  `status` enum('draft','sent','paid','partial','overdue','cancelled') DEFAULT 'draft',
  `paid_date` date DEFAULT NULL,
  `payment_method` varchar(100) DEFAULT NULL,
  `bank_account_id` int(11) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `terms_text` text DEFAULT NULL,
  `reference` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `is_recurring` tinyint(1) DEFAULT 0,
  `recur_interval` varchar(20) DEFAULT NULL,
  `recur_next_date` date DEFAULT NULL,
  `recur_end_date` date DEFAULT NULL,
  `recur_parent_id` int(11) DEFAULT NULL,
  `charges_label` varchar(100) DEFAULT NULL,
  `charges_amount` decimal(15,2) DEFAULT 0.00,
  `gst_type` varchar(20) DEFAULT 'IGST',
  `cgst_amount` decimal(15,2) DEFAULT 0.00,
  `sgst_amount` decimal(15,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `invoices`
--

INSERT INTO `invoices` (`id`, `invoice_number`, `client_id`, `invoice_date`, `due_date`, `currency`, `symbol`, `subtotal`, `discount_percent`, `discount_amount`, `gst_enabled`, `gst_amount`, `total`, `amount_paid`, `status`, `paid_date`, `payment_method`, `bank_account_id`, `notes`, `terms_text`, `reference`, `created_at`, `is_recurring`, `recur_interval`, `recur_next_date`, `recur_end_date`, `recur_parent_id`, `charges_label`, `charges_amount`, `gst_type`, `cgst_amount`, `sgst_amount`) VALUES
(1, 'INV-2026-0001', 3, '2026-03-03', '2026-04-02', 'INR', 'Rs', 65000.00, 0.00, 0.00, 0, 0.00, 65000.00, 65000.00, 'paid', '2026-03-03', 'Bank Transfer', 1, '', '1. This quotation is valid for 30 days.\r\n2. 50% advance required on order confirmation.\r\n3. Prices subject to change after validity period.', NULL, '2026-03-03 11:37:25', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(2, 'INV-2026-0002', 3, '2026-03-03', '2026-04-02', 'INR', 'Rs', 65000.00, 0.00, 0.00, 1, 11700.00, 76700.00, 0.00, 'overdue', NULL, NULL, NULL, '', '1. Payment due within 30 days.\r\n2. Late payments incur 2% monthly interest.\r\n3. Please include invoice number in payment reference.', '', '2026-03-03 11:38:25', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(3, 'INV-2026-0003', 4, '2026-03-03', '2026-04-02', 'USD', '$', 50000.00, 0.00, 0.00, 0, 0.00, 50000.00, 0.00, 'paid', NULL, NULL, 1, '', '1. Payment due within 30 days.\r\n2. Late payments incur 2% monthly interest.\r\n3. Please include invoice number in payment reference.', '', '2026-03-03 12:18:41', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(5, 'INV-2026-0005', 3, '2026-03-03', '2026-04-02', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 17700.00, 'paid', '2026-03-18', 'Bank Transfer', NULL, '', '1. Payment due within 30 days.\r\n2. Late payments incur 2% monthly interest.\r\n3. Please include invoice number in payment reference.', '', '2026-03-03 12:23:06', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(6, 'INV-2026-0006', 3, '2026-03-04', '2026-04-03', 'INR', 'Rs', 65000.00, 0.00, 0.00, 0, 0.00, 66000.00, 0.00, 'draft', NULL, NULL, 1, '', '1. This quotation is valid for 30 days.\r\n2. 50% advance required on order confirmation.\r\n3. Prices subject to change after validity period.', '', '2026-03-04 06:08:24', 0, NULL, NULL, NULL, NULL, 'Bank', 1000.00, 'IGST', 0.00, 0.00),
(7, 'SINV-2026-0007', 3, '2026-03-04', '2026-04-03', 'INR', 'Rs', 65000.00, 0.00, 0.00, 1, 11700.00, 78700.00, 0.00, 'draft', NULL, NULL, 1, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-04 06:41:12', 1, 'weekly', '2026-03-25', NULL, NULL, 'Shipping', 2000.00, 'IGST', 0.00, 0.00),
(8, 'SINV-2026-0011', 3, '2026-03-04', '2026-04-03', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, 1, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', NULL, '2026-03-04 07:09:49', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(9, 'SINV-0012', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:28:48', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(10, 'SINV-0013', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:28:53', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(11, 'SINV-2026-0014', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:29:48', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(12, 'SINV-2026-0015', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:35:42', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(13, 'SINV-2026-0016', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 50000.00, 0.00, 0.00, 1, 9000.00, 59000.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:36:03', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(14, 'SINV-2026-0017', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 50000.00, 0.00, 0.00, 1, 9000.00, 59000.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:40:38', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(15, 'SINV-2026-0018', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 50000.00, 0.00, 0.00, 1, 9000.00, 59000.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:54:58', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(16, 'SINV-0019-2026', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:55:26', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(17, 'SINV-2026-0020', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 06:11:57', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(18, 'SINV-2026-0021', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 50000.00, 0.00, 0.00, 1, 9000.00, 59000.00, 59000.00, 'paid', '2026-03-09', 'Bank Transfer', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 06:29:01', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(19, 'SINV-2026-0022', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 50000.00, 0.00, 0.00, 1, 9000.00, 59000.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 06:29:01', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(20, 'SINV-2026-0023', 3, '2026-03-07', '2026-04-06', 'USD', '$', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 17700.00, 'paid', '2026-03-07', 'Bank Transfer', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 06:40:37', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(21, 'SINV-2026-0024', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 12000.00, 0.00, 0.00, 1, 2160.00, 14160.00, 14160.00, 'paid', '2026-03-09', 'Bank Transfer', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 07:35:19', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(22, 'SINV-2026-0025', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 6000.00, 0.00, 0.00, 1, 1080.00, 7080.00, 7080.00, 'paid', '2026-03-09', 'Bank Transfer', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 07:42:26', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00),
(28, 'SINV-0031/25-26', 4, '2026-03-18', '2026-04-17', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 0.00, 'draft', NULL, NULL, NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-18 10:21:22', 0, NULL, NULL, NULL, NULL, NULL, 0.00, 'IGST', 0.00, 0.00);

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

--
-- Table structure for table `invoice_items`
--

CREATE TABLE `invoice_items` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `qty` decimal(10,2) DEFAULT 1.00,
  `unit` varchar(50) DEFAULT 'Nos',
  `price` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `gst_rate` decimal(5,2) DEFAULT 0.00,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `sort_order` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `invoice_items`
--

INSERT INTO `invoice_items` (`id`, `invoice_id`, `product_id`, `name`, `description`, `qty`, `unit`, `price`, `discount_percent`, `gst_rate`, `gst_amount`, `total`, `sort_order`) VALUES
(1, 1, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 0.00, 15000.00, 0),
(2, 1, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 0.00, 50000.00, 1),
(5, 2, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(6, 2, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 1),
(11, 3, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.02, 0.00, 50000.00, 0),
(16, 5, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(25, 6, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 0.00, 15000.00, 0),
(26, 6, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 0.00, 50000.00, 1),
(33, 8, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(34, 14, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 0),
(35, 15, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 0),
(36, 16, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(37, 17, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(38, 18, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 0),
(39, 19, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 0),
(40, 20, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(41, 21, 5, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 2.00, '', 6000.00, 0.00, 18.00, 2160.00, 14160.00, 0),
(42, 22, 5, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 1.00, '', 6000.00, 0.00, 18.00, 1080.00, 7080.00, 0),
(46, 7, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(47, 7, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 9000.00, 59000.00, 1),
(52, 28, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0);

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

--
-- Table structure for table `logs`
--

CREATE TABLE `logs` (
  `id` int(11) NOT NULL,
  `type` varchar(20) DEFAULT NULL,
  `ref_id` int(11) DEFAULT NULL,
  `channel` varchar(20) DEFAULT NULL,
  `recipient` varchar(255) DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL,
  `message` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `periods`
--

CREATE TABLE `periods` (
  `id` int(11) NOT NULL,
  `label` varchar(100) NOT NULL,
  `sort_order` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `periods`
--

INSERT INTO `periods` (`id`, `label`, `sort_order`, `created_at`) VALUES
(2, 'Monthly', 1, '2026-03-03 11:33:02'),
(3, '2 Months', 2, '2026-03-03 11:33:02'),
(4, '3 Months', 3, '2026-03-03 11:33:02'),
(5, '6 Months', 4, '2026-03-03 11:33:02'),
(6, 'Yearly', 5, '2026-03-03 11:33:02'),
(7, '2 Years', 6, '2026-03-03 11:33:02');

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `type` enum('product','service') DEFAULT 'service',
  `price` decimal(15,2) DEFAULT 0.00,
  `unit` varchar(50) DEFAULT 'Nos',
  `gst_rate` decimal(5,2) DEFAULT 18.00,
  `hsn` varchar(50) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `name`, `description`, `type`, `price`, `unit`, `gst_rate`, `hsn`, `is_active`, `created_at`) VALUES
(1, 'Web Development', 'Custom website development', 'service', 50000.00, 'Project', 18.00, NULL, 1, '2026-03-03 10:58:07'),
(3, 'Digital Marketing', 'Monthly digital marketing', 'service', 15000.00, 'Month', 18.00, NULL, 1, '2026-03-03 10:58:07'),
(5, 'RUNMINUZ AIRNOW', 'upports SD and HD \r\nLive feed can be used as a play list item\r\nNDI Input & Output\r\nRTMP , UDP, Input\r\nUDP Output\r\nUnlimited CG Layers\r\nL band\r\nWeb streaming through adobe flash media encoder/OBS\r\nLog Report\r\nAuto-playlist Composer\r\nClip Trimmer for Split files\r\nKeyboard Shortcuts\r\nScaled SD Output to Different IP or Card', 'service', 6000.00, '1', 18.00, '', 1, '2026-03-07 07:17:48');

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

--
-- Table structure for table `proforma_invoices`
--

CREATE TABLE `proforma_invoices` (
  `id` int(11) NOT NULL,
  `invoice_number` varchar(100) NOT NULL,
  `client_id` int(11) NOT NULL,
  `invoice_date` date NOT NULL,
  `due_date` date DEFAULT NULL,
  `currency` varchar(10) DEFAULT 'INR',
  `symbol` varchar(10) DEFAULT 'Rs',
  `subtotal` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `discount_amount` decimal(15,2) DEFAULT 0.00,
  `gst_enabled` tinyint(1) DEFAULT 1,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `bank_account_id` int(11) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `terms_text` text DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'draft',
  `paid_date` date DEFAULT NULL,
  `payment_method` varchar(100) DEFAULT NULL,
  `amount_paid` decimal(15,2) DEFAULT 0.00,
  `charges_label` varchar(100) DEFAULT NULL,
  `charges_amount` decimal(15,2) DEFAULT 0.00,
  `gst_type` varchar(20) DEFAULT 'IGST',
  `cgst_amount` decimal(15,2) DEFAULT 0.00,
  `sgst_amount` decimal(15,2) DEFAULT 0.00,
  `converted_to_invoice` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `is_recurring` tinyint(1) DEFAULT 0,
  `recur_interval` varchar(20) DEFAULT NULL,
  `recur_next_date` date DEFAULT NULL,
  `recur_end_date` date DEFAULT NULL,
  `recur_parent_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `proforma_invoices`
--

INSERT INTO `proforma_invoices` (`id`, `invoice_number`, `client_id`, `invoice_date`, `due_date`, `currency`, `symbol`, `subtotal`, `discount_percent`, `discount_amount`, `gst_enabled`, `gst_amount`, `total`, `bank_account_id`, `notes`, `terms_text`, `reference`, `status`, `paid_date`, `payment_method`, `amount_paid`, `charges_label`, `charges_amount`, `gst_type`, `cgst_amount`, `sgst_amount`, `converted_to_invoice`, `created_at`, `is_recurring`, `recur_interval`, `recur_next_date`, `recur_end_date`, `recur_parent_id`) VALUES
(2, 'PINV-2026-0002', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, NULL, '', '', '', 'draft', NULL, NULL, 0.00, NULL, 0.00, 'IGST', 0.00, 0.00, NULL, '2026-03-07 06:30:41', 0, NULL, NULL, NULL, NULL),
(3, 'PINV-2026-0003', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 154000.00, 0.00, 0.00, 1, 1080.00, 155080.00, NULL, '', '', '', 'draft', NULL, NULL, 0.00, NULL, 0.00, 'IGST', 0.00, 0.00, NULL, '2026-03-07 07:28:08', 0, NULL, NULL, NULL, NULL),
(5, 'PINV-0005', 4, '2026-03-18', '2026-04-17', 'INR', 'Rs', 6000.00, 0.00, 0.00, 1, 1080.00, 7080.00, NULL, '', '', '', 'draft', NULL, NULL, 0.00, NULL, 0.00, 'IGST', 0.00, 0.00, 26, '2026-03-18 07:27:59', 1, 'monthly', '2026-04-19', NULL, NULL),
(6, 'PINV-0006', 4, '2026-03-19', '2026-04-18', 'INR', 'Rs', 6000.00, 0.00, 0.00, 1, 1080.00, 7080.00, NULL, '', '', '', 'draft', NULL, NULL, 0.00, NULL, 0.00, 'IGST', 0.00, 0.00, NULL, '2026-03-19 11:25:33', 1, 'monthly', '2026-04-19', NULL, 5);

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

--
-- Table structure for table `proforma_invoice_items`
--

CREATE TABLE `proforma_invoice_items` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `qty` decimal(15,4) DEFAULT 1.0000,
  `unit` varchar(100) DEFAULT NULL,
  `price` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `gst_rate` decimal(5,2) DEFAULT 0.00,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `sort_order` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `proforma_invoice_items`
--

INSERT INTO `proforma_invoice_items` (`id`, `invoice_id`, `name`, `description`, `product_id`, `qty`, `unit`, `price`, `discount_percent`, `gst_rate`, `gst_amount`, `total`, `sort_order`) VALUES
(3, 2, 'Digital Marketing', 'Monthly digital marketing', 3, 1.0000, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(5, 3, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 18.00, 1080.00, 7080.00, 0),
(6, 3, 'Digital Marketing', 'Monthly digital marketing', 3, 1.0000, '', 15000.00, 0.00, 0.00, 0.00, 15000.00, 1),
(7, 3, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 0.00, 0.00, 6000.00, 2),
(8, 3, 'Web Development', 'Custom website development', 1, 1.0000, '', 50000.00, 0.00, 0.00, 0.00, 50000.00, 3),
(9, 3, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 0.00, 0.00, 6000.00, 4),
(10, 3, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 0.00, 0.00, 6000.00, 5),
(11, 3, 'Digital Marketing', 'Monthly digital marketing', 3, 1.0000, '', 15000.00, 0.00, 0.00, 0.00, 15000.00, 6),
(12, 3, 'Web Development', 'Custom website development', 1, 1.0000, '', 50000.00, 0.00, 0.00, 0.00, 50000.00, 7),
(16, 5, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 18.00, 1080.00, 7080.00, 0),
(17, 6, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 5, 1.0000, '', 6000.00, 0.00, 18.00, 1080.00, 7080.00, 0);

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

--
-- Table structure for table `quotes`
--

CREATE TABLE `quotes` (
  `id` int(11) NOT NULL,
  `quote_number` varchar(50) NOT NULL,
  `client_id` int(11) NOT NULL,
  `quote_date` date NOT NULL,
  `valid_until` date DEFAULT NULL,
  `currency` varchar(10) DEFAULT 'INR',
  `symbol` varchar(10) DEFAULT 'Rs',
  `subtotal` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `discount_amount` decimal(15,2) DEFAULT 0.00,
  `gst_enabled` tinyint(1) DEFAULT 0,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `status` enum('draft','sent','accepted','declined','expired') DEFAULT 'draft',
  `bank_account_id` int(11) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `terms_text` text DEFAULT NULL,
  `reference` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `charges_label` varchar(100) DEFAULT NULL,
  `charges_amount` decimal(15,2) DEFAULT 0.00,
  `gst_type` varchar(20) DEFAULT 'IGST',
  `cgst_amount` decimal(15,2) DEFAULT 0.00,
  `sgst_amount` decimal(15,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quotes`
--

INSERT INTO `quotes` (`id`, `quote_number`, `client_id`, `quote_date`, `valid_until`, `currency`, `symbol`, `subtotal`, `discount_percent`, `discount_amount`, `gst_enabled`, `gst_amount`, `total`, `status`, `bank_account_id`, `notes`, `terms_text`, `reference`, `created_at`, `charges_label`, `charges_amount`, `gst_type`, `cgst_amount`, `sgst_amount`) VALUES
(1, 'QUO-2026-0001', 3, '2026-03-03', '2026-04-02', 'INR', 'Rs', 65000.00, 0.00, 0.00, 0, 0.00, 65000.00, 'accepted', 1, '', '1. This quotation is valid for 30 days.\r\n2. 50% advance required on order confirmation.\r\n3. Prices subject to change after validity period.', '', '2026-03-03 11:27:43', NULL, 0.00, 'IGST', 0.00, 0.00),
(2, 'CLT-2026-0004', 3, '2026-03-04', '2026-04-03', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 'accepted', 1, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-04 07:08:39', NULL, 0.00, 'CGST_SGST', 1350.00, 1350.00),
(3, 'CLT-2026-0005', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 'draft', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:27:39', NULL, 0.00, 'IGST', 0.00, 0.00),
(4, 'CLT-2026-0006', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 'draft', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:28:01', NULL, 0.00, 'IGST', 0.00, 0.00),
(5, 'CLT-2026-0007', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 'draft', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:29:39', NULL, 0.00, 'IGST', 0.00, 0.00),
(6, 'CLT-2026-0008', 3, '2026-03-05', '2026-04-04', 'INR', 'Rs', 15000.00, 0.00, 0.00, 1, 2700.00, 17700.00, 'draft', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-05 12:35:50', NULL, 0.00, 'IGST', 0.00, 0.00),
(7, 'CLT-2026-0009', 3, '2026-03-07', '2026-04-06', 'INR', 'Rs', 6000.00, 0.00, 0.00, 1, 1080.00, 7080.00, 'draft', NULL, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-07 07:17:59', NULL, 0.00, 'IGST', 0.00, 0.00),
(8, 'CLT-2026-0010', 3, '2026-03-17', '2026-04-16', 'INR', 'Rs', 15000.00, 10.00, 1500.00, 1, 2700.00, 16200.00, 'accepted', 1, '', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.', '', '2026-03-17 10:21:32', NULL, 0.00, 'IGST', 0.00, 0.00);

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

--
-- Table structure for table `quote_items`
--

CREATE TABLE `quote_items` (
  `id` int(11) NOT NULL,
  `quote_id` int(11) NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `qty` decimal(10,2) DEFAULT 1.00,
  `unit` varchar(50) DEFAULT 'Nos',
  `price` decimal(15,2) DEFAULT 0.00,
  `discount_percent` decimal(5,2) DEFAULT 0.00,
  `gst_rate` decimal(5,2) DEFAULT 0.00,
  `gst_amount` decimal(15,2) DEFAULT 0.00,
  `total` decimal(15,2) DEFAULT 0.00,
  `sort_order` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `quote_items`
--

INSERT INTO `quote_items` (`id`, `quote_id`, `product_id`, `name`, `description`, `qty`, `unit`, `price`, `discount_percent`, `gst_rate`, `gst_amount`, `total`, `sort_order`) VALUES
(5, 1, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 0.00, 15000.00, 0),
(6, 1, 1, 'Web Development', 'Custom website development', 1.00, '', 50000.00, 0.00, 18.00, 0.00, 50000.00, 1),
(7, 2, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(8, 3, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(9, 4, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(10, 5, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(11, 6, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0),
(12, 7, 5, 'RUNMINUZ AIRNOW', 'upports SD and HD Live feed can be used as a play list itemNDI Input & OutputRTMP , UDP, InputUDP OutputUnlimited CG LayersL bandWeb streaming through adobe flash media encoder/OBSLog ReportAuto-playlist ComposerClip Trimmer for Split filesKeyboard ShortcutsScaled SD Output to Different IP or Card', 1.00, '', 6000.00, 0.00, 18.00, 1080.00, 7080.00, 0),
(14, 8, 3, 'Digital Marketing', 'Monthly digital marketing', 1.00, '', 15000.00, 0.00, 18.00, 2700.00, 17700.00, 0);

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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `permissions` text DEFAULT '[]',
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `permissions`, `created_at`) VALUES
(1, 'Sales', '[\"quotes.view\",\"quotes.create\",\"quotes.edit\",\"proforma.view\",\"proforma.create\",\"proforma.edit\",\"proforma.delete\",\"clients.view\",\"clients.create\",\"clients.edit\"]', '2026-03-07 07:06:44');

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `k` varchar(100) NOT NULL,
  `v` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`k`, `v`) VALUES
('company_address', 'CM Mathew Brothers Arcade\r\nEast Hill Road, Kozhikode - 673006'),
('company_email', 'sales@simscomm.net'),
('company_gst', '32AFAFS5778Q1Z9'),
('company_logo', 'uploads/company/69a6bfda305a7.png'),
('company_name', 'SIMS TECHNOLABS'),
('company_phone', '+91 9746588896'),
('company_website', 'www.simscomm.net'),
('default_cgst', '9'),
('default_currency', 'INR'),
('default_gst', '0'),
('default_igst', '18'),
('default_sgst', '9'),
('default_symbol', 'Rs'),
('inv_next', '32'),
('inv_num_col1', 'SINV'),
('inv_num_col2_cus', ''),
('inv_num_col2_fmt', 'FY'),
('inv_num_col2_on', '1'),
('inv_num_col3_pad', '4'),
('inv_num_order', 'serial-year'),
('inv_num_sep1', '-'),
('inv_num_sep2', '/'),
('inv_pdf_accent', '#5ec832'),
('inv_pdf_dark', '#1a1a1a'),
('inv_prefix', 'SINV'),
('inv_terms', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.'),
('mail_from', 'invoice@simscomm.net'),
('mail_host', 'mail.simscomm.net'),
('mail_name', 'INVOICE'),
('mail_pass', 'Invoice@2024'),
('mail_port', '465'),
('mail_user', 'invoice@simscomm.net'),
('pro_next', '7'),
('pro_num_col1', 'PINV'),
('pro_num_col2_cus', ''),
('pro_num_col2_fmt', 'YYYY'),
('pro_num_col2_on', '0'),
('pro_num_col3_pad', '4'),
('pro_num_order', 'year-serial'),
('pro_num_sep1', '-'),
('pro_num_sep2', '-'),
('pro_pdf_accent', '#dc2626'),
('pro_pdf_dark', '#1a1a1a'),
('quo_next', '11'),
('quo_num_col1', 'CLT'),
('quo_num_col2_cus', ''),
('quo_num_col2_fmt', 'YYYY'),
('quo_num_col2_on', '0'),
('quo_num_col3_pad', '4'),
('quo_num_order', 'year-serial'),
('quo_num_sep1', '-'),
('quo_num_sep2', '-'),
('quo_pdf_accent', '#5ec832'),
('quo_pdf_dark', '#1a1a1a'),
('quo_prefix', 'CLT'),
('quo_terms', '#Payment : 100% along with confirmed PO.\r\n# Above prices all are in INR\r\n# Offer is valid for 10 days.\r\n# AMC Should be taken after one year for regular software updates and support.\r\n# Customers should provide required system, suggested by our Engineers.'),
('wa_phone_id', ''),
('wa_token', '');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `is_admin` tinyint(1) DEFAULT 0,
  `role_id` int(11) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `name`, `email`, `password`, `created_at`, `is_admin`, `role_id`, `is_active`) VALUES
(1, 'Admin', 'admin@invoicepro.com', '$2y$10$pHj/ZJRvmRzsOWx1V3LLUun61vLYUYR9yaVanO7/wbMVqv8se6utG', '2026-03-03 10:58:07', 1, NULL, 1),
(2, 'user', 'user@gmail.com', '$2y$10$EzkpjvMKJaYmTytiiZ37m.GTp1v1V1hAKkNeY9F.ZjpQbaYya2xL6', '2026-03-07 07:07:23', 0, 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `invoices`
--
ALTER TABLE `invoices`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `invoice_number` (`invoice_number`);

--
-- Indexes for table `invoice_items`
--
ALTER TABLE `invoice_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `logs`
--
ALTER TABLE `logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `periods`
--
ALTER TABLE `periods`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `proforma_invoices`
--
ALTER TABLE `proforma_invoices`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `proforma_invoice_items`
--
ALTER TABLE `proforma_invoice_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `quotes`
--
ALTER TABLE `quotes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `quote_number` (`quote_number`);

--
-- Indexes for table `quote_items`
--
ALTER TABLE `quote_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`k`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `bank_accounts`
--
ALTER TABLE `bank_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `invoice_items`
--
ALTER TABLE `invoice_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `logs`
--
ALTER TABLE `logs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `periods`
--
ALTER TABLE `periods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `proforma_invoices`
--
ALTER TABLE `proforma_invoices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `proforma_invoice_items`
--
ALTER TABLE `proforma_invoice_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `quotes`
--
ALTER TABLE `quotes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `quote_items`
--
ALTER TABLE `quote_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;

/*!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 */;
