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

START TRANSACTION;



--
-- Database: `diginspire_gst1`
--

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

--
-- Table structure for table `inv_order`
--

CREATE TABLE `inv_order` (
  `order_id` int NOT NULL,
  `order_no` varchar(50) NOT NULL,
  `order_date` date NOT NULL,
  `order_receiver_name` varchar(250) NOT NULL,
  `order_receiver_address` text NOT NULL,
  `order_total_before_tax` decimal(10,0) NOT NULL,
  `order_total_tax1` decimal(10,0) NOT NULL,
  `order_total_tax2` decimal(10,0) NOT NULL,
  `order_total_tax3` decimal(10,0) NOT NULL,
  `order_total_tax` decimal(10,0) NOT NULL,
  `order_total_after_tax` int NOT NULL,
  `order_datetime` int NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `inv_order`
--

INSERT INTO `inv_order` (`order_id`, `order_no`, `order_date`, `order_receiver_name`, `order_receiver_address`, `order_total_before_tax`, `order_total_tax1`, `order_total_tax2`, `order_total_tax3`, `order_total_tax`, `order_total_after_tax`, `order_datetime`) VALUES
(14, '169690', '2021-07-06', 'Jennifer Letcher', '3116 George Street', 3555, 12, 12, 1, 25, 3580, 1625592940),
(13, '104780', '2021-07-05', 'Mary Sheen', '4140 Worley Avenue', 937, 17, 17, 15, 49, 986, 1625592747),
(12, '102566', '2021-07-02', 'Courtney Chandler', '1253 Elliott Street', 112, 1, 1, 1, 3, 112, 1625590918),
(10, '101255', '2021-07-01', 'James Alexanr', '7785 Ralph Street', 48, 1, 1, 0, 2, 50, 1625579598),
(11, '102566', '2021-07-01', 'Agustin A Anderson', '174 Asylum Avenue', 150, 2, 2, 1, 5, 155, 1625590293),
(15, '2', '2023-07-25', 'parshv mehta', 'admin house 123', 80000, 2000, 1800, 3000, 6800, 86800, 1690279527),
(16, '5', '2023-07-27', 'admin', 'admin 123', 20000, 500, 520, 600, 1620, 21620, 1690279717),
(17, '465989', '2023-07-03', 'Rathee', 'sfsdf', 100, 4, 1, 20, 25, 125, 1690281154);

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

--
-- Table structure for table `inv_order_item`
--

CREATE TABLE `inv_order_item` (
  `order_item_id` int NOT NULL,
  `order_id` int NOT NULL,
  `item_name` varchar(250) NOT NULL,
  `order_item_quantity` decimal(10,0) NOT NULL,
  `order_item_price` decimal(10,0) NOT NULL,
  `order_item_actual_amount` decimal(10,0) NOT NULL,
  `order_item_tax1_rate` decimal(10,0) NOT NULL,
  `order_item_tax1_amount` decimal(10,0) NOT NULL,
  `order_item_tax2_rate` decimal(10,0) NOT NULL,
  `order_item_tax2_amount` decimal(10,0) NOT NULL,
  `order_item_tax3_rate` decimal(10,0) NOT NULL,
  `order_item_tax3_amount` decimal(10,0) NOT NULL,
  `order_item_final_amount` decimal(10,0) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `inv_order_item`
--

INSERT INTO `inv_order_item` (`order_item_id`, `order_id`, `item_name`, `order_item_quantity`, `order_item_price`, `order_item_actual_amount`, `order_item_tax1_rate`, `order_item_tax1_amount`, `order_item_tax2_rate`, `order_item_tax2_amount`, `order_item_tax3_rate`, `order_item_tax3_amount`, `order_item_final_amount`) VALUES
(17, 13, 'Product Four', 9, 28, 252, 2, 5, 3, 8, 3, 8, 272),
(16, 13, 'Product Three', 20, 10, 200, 1, 2, 1, 2, 1, 2, 206),
(14, 13, 'Product One', 16, 14, 224, 2, 4, 1, 2, 0, 0, 231),
(15, 13, 'Product Two', 29, 9, 261, 2, 5, 2, 5, 2, 5, 277),
(13, 12, 'RUNMUS Gaming Headset', 7, 16, 112, 0, 1, 0, 1, 0, 1, 112),
(9, 10, 'Demo Item', 6, 8, 48, 2, 1, 2, 1, 0, 0, 50),
(10, 11, 'Demo One', 5, 11, 55, 1, 1, 1, 1, 0, 0, 56),
(11, 11, 'Demo Two', 9, 5, 45, 1, 0, 1, 0, 0, 0, 46),
(12, 11, 'Demo Three', 2, 25, 50, 2, 1, 2, 1, 2, 1, 53),
(23, 14, 'P three', 10, 10, 100, 1, 1, 1, 1, 1, 1, 103),
(22, 14, 'P two', 37, 15, 555, 2, 11, 2, 11, 0, 0, 577),
(21, 14, 'P one', 29, 100, 2900, 0, 0, 0, 0, 0, 0, 2900),
(24, 15, 'i phone 4', 2, 10000, 20000, 3, 500, 2, 300, 3, 600, 21400),
(25, 15, 'i phone 12', 1, 60000, 60000, 3, 1500, 3, 1500, 4, 2400, 65400),
(26, 16, 'i phone 4', 2, 10000, 20000, 3, 500, 3, 520, 3, 600, 21620),
(27, 17, 'gdfg', 1, 100, 100, 4, 4, 1, 1, 20, 20, 125);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `inv_order`
--
ALTER TABLE `inv_order`
  ADD PRIMARY KEY (`order_id`);

--
-- Indexes for table `inv_order_item`
--
ALTER TABLE `inv_order_item`
  ADD PRIMARY KEY (`order_item_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `inv_order`
--
ALTER TABLE `inv_order`
  MODIFY `order_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `inv_order_item`
--
ALTER TABLE `inv_order_item`
  MODIFY `order_item_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
COMMIT;

