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

START TRANSACTION;



--
-- Database: `detsdb`
--

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

--
-- Table structure for table `tblexpense`
--

CREATE TABLE `tblexpense` (
  `ID` int(10) NOT NULL,
  `UserId` int(10) NOT NULL,
  `ExpenseDate` date DEFAULT NULL,
  `ExpenseItem` varchar(200) DEFAULT NULL,
  `ExpenseCost` varchar(200) DEFAULT NULL,
  `NoteDate` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `tblexpense`
--

INSERT INTO `tblexpense` (`ID`, `UserId`, `ExpenseDate`, `ExpenseItem`, `ExpenseCost`, `NoteDate`) VALUES
(1, 1, '2024-08-15', 'Milk', '50', '2024-08-16 04:47:58'),
(2, 1, '2024-08-16', 'Milk+Bread', '150', '2024-08-16 04:48:17'),
(3, 1, '2024-08-14', 'Sugar, Cornflex', '456', '2024-08-16 04:49:04'),
(4, 2, '2024-07-30', 'Cloths', '1250', '2024-08-16 04:51:43'),
(5, 2, '2024-06-06', 'Mobile', '12500', '2024-08-16 04:52:20'),
(6, 3, '2024-07-01', 'Headphones', '399', '2024-08-16 05:17:50'),
(7, 3, '2024-07-31', 'Grocery item', '4520', '2024-08-16 05:18:06'),
(8, 3, '2024-08-15', 'Electricity Bill', '1452', '2024-08-16 05:18:32'),
(9, 3, '2024-07-30', 'Broadband Bill', '1180', '2024-08-16 05:18:44'),
(10, 3, '2024-08-16', 'Bread, Milk, Paneer', '150', '2024-08-16 05:19:11');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `tblexpense`
--
ALTER TABLE `tblexpense`
  ADD PRIMARY KEY (`ID`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tblexpense`
--
ALTER TABLE `tblexpense`
  MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
COMMIT;

