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

START TRANSACTION;



--
-- Database: `grocery`
--

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

--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `print_as` varchar(200) DEFAULT NULL,
  `group_name` varchar(100) NOT NULL,
  `opening_balance` decimal(12,2) DEFAULT 0.00,
  `drcr` enum('Dr','Cr') DEFAULT 'Dr',
  `address1` varchar(255) DEFAULT NULL,
  `address2` varchar(255) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `pincode` varchar(20) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `email` varchar(150) DEFAULT NULL,
  `contact_person` varchar(150) DEFAULT NULL,
  `pan` varchar(20) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `accounts`
--

INSERT INTO `accounts` (`id`, `business_id`, `name`, `print_as`, `group_name`, `opening_balance`, `drcr`, `address1`, `address2`, `city`, `pincode`, `state`, `mobile`, `phone`, `email`, `contact_person`, `pan`, `created_at`) VALUES
(1, 0, 'Shivam Enterprise', '20', 'SUPPLIERS', 1000.00, 'Cr', 'Home Cafe', 'Siliguri Institute Of Technology,sukna', 'SILIGURI', '734009', 'West Bengal', '8617608671', '', '', 'Shivam Das', '', '2025-12-29 15:12:45'),
(2, 0, 'Shivam Enterprise', '20', 'SUPPLIERS', 1000.00, 'Cr', 'Home Cafe', 'Siliguri Institute Of Technology,sukna', 'SILIGURI', '734009', 'West Bengal', '8617608671', '', '', 'Shivam Das', '', '2025-12-29 15:13:12'),
(3, 0, 'Shivam Enterprise', '20', 'SUPPLIERS', 1000.00, 'Cr', 'Home Cafe', 'Siliguri Institute Of Technology,sukna', 'SILIGURI', '734009', 'West Bengal', '8617608671', '', '', 'Shivam Das', '', '2025-12-29 15:14:04'),
(4, 0, 'shivam', 'shivam', 'CUSTOMERS', 0.00, 'Dr', '', '', '', '', 'West Bengal', '8617608671', '', '', '', '', '2026-01-01 18:21:55'),
(5, 0, 'Shivam Das', '', 'CUSTOMERS', 0.00, 'Dr', 'Sepco', '', 'Durgapur', '722202', 'West Bengal', '08348872742', '', '', '', '', '2026-01-02 17:03:48'),
(6, 0, 'Shivam Das', '', 'SUPPLIERS', 0.00, 'Dr', 'Sepco', '', 'Durgapur', '722202', 'West Bengal', '08348872742', '', '', '', '', '2026-01-03 18:12:49'),
(7, 0, 'Shivam Enterprise', 'Shivam Enterprise', 'SUPPLIERS', 1000.00, 'Cr', 'Home Cafe', 'Siliguri Institute Of Technology,sukna', 'SILIGURI', '734009', 'West Bengal', '8348872742', '', '', '', '', '2026-01-04 06:36:52'),
(8, 0, 'Shivam Das', '', 'CUSTOMERS', 0.00, 'Dr', 'Sepco', '', 'Durgapur', '722202', 'West Bengal', '08348872742', '', '', '', '', '2026-01-04 16:36:55'),
(9, 11, 'Shivam Das', '', 'CUSTOMERS', 0.00, 'Dr', 'Sepco', '', 'Durgapur', '722202', 'West Bengal', '08348872742', '', '', '', '', '2026-01-04 16:40:34'),
(10, 0, 'aka enterprise', 'aka enterprise', 'SUPPLIERS', 1000.00, 'Cr', '', '', '', '', 'West Bengal', '7412589633', '', '', '', '', '2026-01-08 11:11:51');

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

--
-- Table structure for table `customer`
--

CREATE TABLE `customer` (
  `sno` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `name` varchar(225) NOT NULL,
  `mobile_no` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` (`sno`, `business_id`, `name`, `mobile_no`) VALUES
(1, 11, 'Shivam', '7412589633');

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

--
-- Table structure for table `new_items`
--

CREATE TABLE `new_items` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `item_name` varchar(255) DEFAULT NULL,
  `short_name` varchar(100) DEFAULT NULL,
  `hsn_code` varchar(50) DEFAULT NULL,
  `tax_slab` varchar(20) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `item_group` varchar(100) DEFAULT NULL,
  `primary_unit` varchar(50) DEFAULT NULL,
  `alternate_unit` varchar(50) DEFAULT NULL,
  `conversion_factor` int(11) DEFAULT NULL,
  `price_per` varchar(50) DEFAULT NULL,
  `purchase_price` decimal(10,2) DEFAULT NULL,
  `sale_price` decimal(10,2) DEFAULT NULL,
  `mrp` decimal(10,2) DEFAULT NULL,
  `opening_qty_kg` decimal(10,2) DEFAULT NULL,
  `opening_qty_gm` decimal(10,2) DEFAULT NULL,
  `img` varchar(255) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `new_items`
--

INSERT INTO `new_items` (`id`, `business_id`, `item_name`, `short_name`, `hsn_code`, `tax_slab`, `company`, `item_group`, `primary_unit`, `alternate_unit`, `conversion_factor`, `price_per`, `purchase_price`, `sale_price`, `mrp`, `opening_qty_kg`, `opening_qty_gm`, `img`, `created_at`) VALUES
(1, 11, 'sugar', '', '', '5', '', '', 'gm', 'kg', 1000, 'kg', 55.00, 40.00, 47.00, 40.00, 500.00, '', '2025-12-29 14:24:25'),
(2, 11, 'rice', '', '123', '5', '123', '123', 'gm', 'kg', 1000, 'kg', 44.00, 41.00, 50.00, 3.00, 500.00, '', '2025-12-29 14:44:13'),
(3, 11, 'eggs', '', '', '5', '', '', 'Pcs', 'Pcs', 1, 'Pcs', 10.00, 15.00, 15.00, 100.00, 0.00, '', '2026-01-01 17:44:04'),
(4, 11, 'dal', '', '', '5', '', 'Grocery', 'kg', 'kg', 1000, 'kg', 35.00, 25.00, 25.00, 17.00, NULL, '', '2026-01-01 18:01:06'),
(5, 11, 'kinder joy', '', '', '0', '', 'Grocery', 'Pcs', 'Pcs', 1, 'Pcs', 40.00, 35.00, 42.00, 19.00, NULL, '', '2026-01-02 17:53:31');

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

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `table_no` varchar(20) NOT NULL DEFAULT '',
  `status` varchar(15) NOT NULL DEFAULT 'OPEN',
  `subtotal` decimal(10,2) NOT NULL DEFAULT 0.00,
  `discount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `tax` decimal(10,2) NOT NULL DEFAULT 0.00,
  `total` decimal(10,2) NOT NULL DEFAULT 0.00,
  `payment_method` varchar(20) NOT NULL DEFAULT '',
  `gst_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `customer_sno` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` (`id`, `business_id`, `created_at`, `table_no`, `status`, `subtotal`, `discount`, `tax`, `total`, `payment_method`, `gst_enabled`, `customer_sno`) VALUES
(1, 11, '2026-01-08 16:39:56', '1', 'OPEN', 0.00, 0.00, 0.00, 0.00, '', 1, 1);

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

--
-- Table structure for table `order_items`
--

CREATE TABLE `order_items` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `order_id` int(11) NOT NULL,
  `item_id` int(11) DEFAULT NULL,
  `item_name` varchar(120) NOT NULL,
  `price` decimal(10,2) NOT NULL DEFAULT 0.00,
  `qty` int(11) NOT NULL DEFAULT 1,
  `notes` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `party_id` int(11) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `payment_date` date NOT NULL,
  `payment_mode` varchar(50) NOT NULL,
  `payment_type` enum('RECEIPT','PAYMENT') NOT NULL,
  `remarks` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `payments`
--

INSERT INTO `payments` (`id`, `business_id`, `party_id`, `amount`, `payment_date`, `payment_mode`, `payment_type`, `remarks`, `created_at`) VALUES
(1, 11, 9, 100.00, '2026-01-08', 'Cash', 'RECEIPT', '', '2026-01-08 07:46:25');

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

--
-- Table structure for table `payment_requests`
--

CREATE TABLE `payment_requests` (
  `id` int(11) NOT NULL,
  `restaurant_id` int(11) NOT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `mode` varchar(50) DEFAULT NULL,
  `transaction_id` varchar(100) DEFAULT NULL,
  `screenshot` varchar(255) DEFAULT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `payment_requests`
--

INSERT INTO `payment_requests` (`id`, `restaurant_id`, `amount`, `mode`, `transaction_id`, `screenshot`, `status`, `created_at`) VALUES
(1, 11, 400.00, 'Bank Transfer', 'dvxvcx', '', 'approved', '2025-12-20 13:18:51'),
(2, 12, 400.00, 'Bank Transfer', 'ds', '', 'approved', '2026-01-02 17:27:01'),
(3, 12, 400.00, 'Bank Transfer', 'ds', '', 'pending', '2026-01-02 17:27:33');

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

--
-- Table structure for table `purchases`
--

CREATE TABLE `purchases` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `party_id` int(11) NOT NULL,
  `bill_no` varchar(50) DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `payment_terms` varchar(50) DEFAULT 'Credit',
  `subtotal` decimal(12,2) DEFAULT 0.00,
  `total_tax` decimal(12,2) DEFAULT 0.00,
  `grand_total` decimal(12,2) DEFAULT 0.00,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `purchase_items`
--

CREATE TABLE `purchase_items` (
  `id` int(11) NOT NULL,
  `purchase_id` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `qty` decimal(12,2) DEFAULT 0.00,
  `rate` decimal(12,2) DEFAULT 0.00,
  `amount` decimal(12,2) DEFAULT 0.00,
  `tax_per` decimal(5,2) DEFAULT 0.00,
  `tax_amt` decimal(12,2) DEFAULT 0.00,
  `net_value` decimal(12,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `sales`
--

CREATE TABLE `sales` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `bill_no` varchar(50) DEFAULT NULL,
  `sale_date` date DEFAULT NULL,
  `party_id` int(11) DEFAULT NULL,
  `subtotal` decimal(10,2) DEFAULT NULL,
  `cgst` decimal(10,2) DEFAULT NULL,
  `sgst` decimal(10,2) DEFAULT NULL,
  `grand_total` decimal(10,2) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `payment_terms` varchar(50) DEFAULT NULL,
  `total_discount` decimal(10,2) DEFAULT 0.00,
  `total_tax` decimal(10,2) DEFAULT 0.00,
  `cash_tendered` decimal(10,2) DEFAULT 0.00,
  `change_amount` decimal(10,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `sales`
--

INSERT INTO `sales` (`id`, `business_id`, `bill_no`, `sale_date`, `party_id`, `subtotal`, `cgst`, `sgst`, `grand_total`, `created_at`, `due_date`, `payment_terms`, `total_discount`, `total_tax`, `cash_tendered`, `change_amount`) VALUES
(1, 0, NULL, NULL, 2, 81.00, 7.29, 7.29, 95.58, '2025-12-30 20:46:50', NULL, NULL, 0.00, 0.00, 0.00, 0.00),
(2, 0, NULL, NULL, 1, 41.00, 3.69, 3.69, 48.38, '2025-12-30 20:48:52', NULL, NULL, 0.00, 0.00, 0.00, 0.00),
(3, 0, NULL, NULL, 1, 41.00, 3.69, 3.69, 48.38, '2025-12-30 20:51:30', NULL, NULL, 0.00, 0.00, 0.00, 0.00),
(4, 0, NULL, NULL, 1, 281.00, 25.29, 25.29, 331.58, '2025-12-30 20:53:38', NULL, NULL, 0.00, 0.00, 0.00, 0.00),
(5, 0, '', '2026-01-01', 1, 95.00, 0.00, 0.00, 95.00, '2026-01-01 23:24:24', '2026-01-01', 'Credit', 0.00, 0.00, 0.00, -80.00),
(6, 0, '', '2026-01-01', 1, 22.00, 0.00, 0.00, 22.00, '2026-01-02 00:11:42', '2026-01-01', 'Cash', 0.00, 0.00, 22.00, 0.00),
(7, 0, '', '2026-01-02', 5, 62.50, 0.00, 0.00, 62.50, '2026-01-02 22:37:30', '2026-01-02', 'Cash', 0.00, 0.00, 63.00, 0.50),
(8, 11, '', '2026-01-08', 9, 199.00, 0.00, 0.00, 199.00, '2026-01-08 13:21:44', '2026-01-08', 'Credit', 0.00, 0.00, 0.00, -199.00);

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

--
-- Table structure for table `sale_items`
--

CREATE TABLE `sale_items` (
  `id` int(11) NOT NULL,
  `business_id` int(11) NOT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `batch_no` varchar(50) DEFAULT NULL,
  `qty` decimal(10,2) DEFAULT NULL,
  `rate` decimal(10,2) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `alt_qty` decimal(10,2) DEFAULT 0.00,
  `free_qty` decimal(10,2) DEFAULT 0.00,
  `discount_per` decimal(10,2) DEFAULT 0.00,
  `discount_amt` decimal(10,2) DEFAULT 0.00,
  `tax_per` decimal(10,2) DEFAULT 0.00,
  `tax_amt` decimal(10,2) DEFAULT 0.00,
  `net_value` decimal(10,2) DEFAULT 0.00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `sale_items`
--

INSERT INTO `sale_items` (`id`, `business_id`, `sale_id`, `item_id`, `batch_no`, `qty`, `rate`, `amount`, `alt_qty`, `free_qty`, `discount_per`, `discount_amt`, `tax_per`, `tax_amt`, `net_value`) VALUES
(1, 0, 1, 2, NULL, 1.00, 41.00, 41.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00),
(2, 0, 2, 2, NULL, 1.00, 41.00, 41.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00),
(3, 0, 3, 2, NULL, 1.00, 41.00, 41.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00),
(4, 0, 4, 2, NULL, 1.00, 41.00, 41.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00),
(5, 0, 4, 1, NULL, 6.00, 40.00, 240.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00),
(6, 0, 5, 3, '', 1.00, 15.00, 15.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 15.00),
(7, 0, 5, 1, '', 2.00, 40.00, 80.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 80.00),
(8, 0, 6, 4, '', 1.00, 22.00, 22.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 22.00),
(9, 0, 7, 4, '', 2.50, 25.00, 62.50, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 62.50),
(10, 0, 8, 5, '', 1.00, 35.00, 35.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 35.00),
(11, 0, 8, 2, '', 4.00, 41.00, 164.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 164.00);

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

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` int(11) NOT NULL,
  `restaurant_id` int(11) NOT NULL,
  `plan` varchar(50) DEFAULT 'monthly',
  `start_date` datetime NOT NULL,
  `expiry_date` datetime NOT NULL,
  `status` enum('active','expired') DEFAULT 'active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `subscriptions`
--

INSERT INTO `subscriptions` (`id`, `restaurant_id`, `plan`, `start_date`, `expiry_date`, `status`) VALUES
(2, 7, 'demo-1hour', '2025-10-12 00:00:00', '2025-10-12 00:00:00', 'active'),
(3, 8, 'demo-1hour', '2025-10-12 00:00:00', '2025-10-12 00:00:00', 'active'),
(4, 9, 'demo-1hour', '2025-10-13 09:04:36', '2025-10-13 10:04:36', 'active'),
(5, 10, 'demo-1hour', '2025-10-13 09:26:12', '2025-10-13 10:26:12', 'active'),
(6, 11, 'demo-1hour', '2025-12-20 18:49:21', '2026-01-20 18:49:21', 'active'),
(7, 12, 'demo-1hour', '2026-01-02 22:57:28', '2026-02-02 22:57:28', 'active');

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
  ADD PRIMARY KEY (`sno`);

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

