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

START TRANSACTION;



--
-- Database: `inventory_db`
--

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

--
-- Table structure for table `inventory_items`
--

CREATE TABLE `inventory_items` (
  `id` int(11) NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `serial_number` varchar(255) DEFAULT NULL,
  `extra_details` text DEFAULT NULL,
  `is_batch` tinyint(1) DEFAULT 0,
  `quantity` int(11) DEFAULT 1,
  `category` varchar(255) DEFAULT NULL,
  `manufacture_date` date DEFAULT NULL,
  `in_date` date NOT NULL,
  `location` varchar(255) DEFAULT NULL,
  `condition` varchar(50) DEFAULT NULL,
  `purchased_date` date DEFAULT NULL,
  `cost` decimal(10,0) DEFAULT NULL,
  `supplier` varchar(255) DEFAULT NULL,
  `remarks` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `inventory_items`
--

INSERT INTO `inventory_items` (`id`, `item_name`, `serial_number`, `extra_details`, `is_batch`, `quantity`, `category`, `manufacture_date`, `in_date`, `location`, `condition`, `purchased_date`, `cost`, `supplier`, `remarks`) VALUES
(12, 'Laptop', '1010111254', 'full set with monitor', 0, 1, 'Electronics', '2025-01-13', '2025-01-07', 'G01', 'New', '2025-01-17', 200, '', ''),
(13, 'A/C', '1010111254', 'installed in wall', 0, 1, 'Electronics', '2025-01-20', '2025-01-22', 'G44', 'New', '2025-01-23', 20, 'N/A', '');

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

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
  `id` int(11) NOT NULL,
  `item_name` varchar(255) NOT NULL,
  `image_path` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `items`
--

INSERT INTO `items` (`id`, `item_name`, `image_path`) VALUES
(6, 'Laptop', 'uploads/678cab1344a9d.png'),
(7, 'A/C', 'uploads/678cab1cc53cb.jpg'),
(8, 'Projector', 'uploads/678cab23d7a3c.png'),
(9, 'Speaker', 'uploads/678cab296627e.jpg');

--
-- Indexes for dumped tables
--

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

