|
| 1 | +-- phpMyAdmin SQL Dump |
| 2 | +-- version 4.6.5.2 |
| 3 | +-- https://www.phpmyadmin.net/ |
| 4 | +-- |
| 5 | +-- Host: 127.0.0.1 |
| 6 | +-- Generation Time: Nov 15, 2021 at 05:15 PM |
| 7 | +-- Server version: 5.6.21 |
| 8 | +-- PHP Version: 5.6.3 |
| 9 | + |
| 10 | +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
| 11 | +SET time_zone = "+00:00"; |
| 12 | + |
| 13 | + |
| 14 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
| 15 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
| 16 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
| 17 | +/*!40101 SET NAMES utf8mb4 */; |
| 18 | + |
| 19 | +-- |
| 20 | +-- Database: `invoicemgsys` |
| 21 | +-- |
| 22 | + |
| 23 | +-- -------------------------------------------------------- |
| 24 | + |
| 25 | +-- |
| 26 | +-- Table structure for table `customers` |
| 27 | +-- |
| 28 | + |
| 29 | +CREATE TABLE `customers` ( |
| 30 | + `id` int(11) NOT NULL, |
| 31 | + `invoice` varchar(255) NOT NULL, |
| 32 | + `name` varchar(255) NOT NULL, |
| 33 | + `email` varchar(255) NOT NULL, |
| 34 | + `address_1` varchar(255) NOT NULL, |
| 35 | + `address_2` varchar(255) NOT NULL, |
| 36 | + `town` varchar(255) NOT NULL, |
| 37 | + `county` varchar(255) NOT NULL, |
| 38 | + `postcode` varchar(255) NOT NULL, |
| 39 | + `phone` varchar(100) NOT NULL, |
| 40 | + `name_ship` varchar(255) NOT NULL, |
| 41 | + `address_1_ship` varchar(255) NOT NULL, |
| 42 | + `address_2_ship` varchar(255) NOT NULL, |
| 43 | + `town_ship` varchar(255) NOT NULL, |
| 44 | + `county_ship` varchar(255) NOT NULL, |
| 45 | + `postcode_ship` varchar(255) NOT NULL |
| 46 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| 47 | + |
| 48 | +-- |
| 49 | +-- Dumping data for table `customers` |
| 50 | +-- |
| 51 | + |
| 52 | +INSERT INTO `customers` (`id`, `invoice`, `name`, `email`, `address_1`, `address_2`, `town`, `county`, `postcode`, `phone`, `name_ship`, `address_1_ship`, `address_2_ship`, `town_ship`, `county_ship`, `postcode_ship`) VALUES |
| 53 | +(43, '3', 'Anne B Ruch', 'anner@mail.com', '4039 Overlook Drive', '4039 Overlook Drive', 'Indianapolis', 'US', '46225', '1478500000', 'Anne B Ruch', '4039 Overlook Drive', '4039 Overlook Drive', 'Indianapolis', 'US', '46225'), |
| 54 | +(44, '4', 'Albert M Dunford', 'albd@mail.com', '1143 Kuhl Avenue', '1143 Kuhl Avenue', 'Norcross', 'US', '30092', '8520000010', 'Albert M Dunford', '1143 Kuhl Avenue', '1143 Kuhl Avenue', 'Norcross', 'US', '30092'), |
| 55 | +(45, '5', 'Anne B Ruch', 'anner@mail.com', '4039 Overlook Drive', '4039 Overlook Drive', 'Indianapolis', 'US', '46225', '1478500000', 'Anne B Ruch', '4039 Overlook Drive', '4039 Overlook Drive', 'Indianapolis', 'US', '46225'), |
| 56 | +(46, '6', 'Wendy Reilly', 'wendy@mail.com', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488', '3214444444', 'Wendy Reilly', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488'), |
| 57 | +(47, '7', 'Test Customer', 'testc@mail.com', '110 Test Address', '116 Test Address', 'Testown', 'TestCn', '00225', '7777777770', 'Test Customer', '110 Test Address', '116 Test Address', 'Testown', 'TestCn', '00225'), |
| 58 | +(48, '8', 'Demo User', 'demouser@mail.com', '115 Demo Address', '115 Demo Address', 'DemoTown', 'DemoCn', '00020', '7777777777', 'Demo User', '115 Demo Address', '115 Demo Address', 'DemoTown', 'DemoCn', '00020'), |
| 59 | +(49, '9', 'Wendy Reilly', 'wendy@mail.com', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488', '3214444444', 'Wendy Reilly', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488'), |
| 60 | +(50, '10', 'Rose Thompson', 'thompsonr@mail.com', '2374 Berkley Street', '2374 Berkley Street', 'Northampton', 'US', '01010', '7410000020', 'Rose Thompson', '2374 Berkley Street', '2374 Berkley Street', 'Northampton', 'US', '01010'); |
| 61 | + |
| 62 | +-- -------------------------------------------------------- |
| 63 | + |
| 64 | +-- |
| 65 | +-- Table structure for table `invoices` |
| 66 | +-- |
| 67 | + |
| 68 | +CREATE TABLE `invoices` ( |
| 69 | + `id` int(11) NOT NULL, |
| 70 | + `invoice` varchar(255) NOT NULL, |
| 71 | + `custom_email` text NOT NULL, |
| 72 | + `invoice_date` varchar(255) NOT NULL, |
| 73 | + `invoice_due_date` varchar(255) NOT NULL, |
| 74 | + `subtotal` decimal(10,0) NOT NULL, |
| 75 | + `shipping` decimal(10,0) NOT NULL, |
| 76 | + `discount` decimal(10,0) NOT NULL, |
| 77 | + `vat` decimal(10,0) NOT NULL, |
| 78 | + `total` decimal(10,0) NOT NULL, |
| 79 | + `notes` text NOT NULL, |
| 80 | + `invoice_type` varchar(255) NOT NULL, |
| 81 | + `status` varchar(255) NOT NULL |
| 82 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| 83 | + |
| 84 | +-- |
| 85 | +-- Dumping data for table `invoices` |
| 86 | +-- |
| 87 | + |
| 88 | +INSERT INTO `invoices` (`id`, `invoice`, `custom_email`, `invoice_date`, `invoice_due_date`, `subtotal`, `shipping`, `discount`, `vat`, `total`, `notes`, `invoice_type`, `status`) VALUES |
| 89 | +(42, '1', '', '12/11/2021', '14/11/2021', '523', '55', '6', '58', '636', 'Completed!', 'invoice', 'paid'), |
| 90 | +(44, '2', '', '12/11/2021', '13/11/2021', '395', '85', '4', '48', '528', 'none', 'invoice', 'paid'), |
| 91 | +(47, '3', '', '13/11/2021', '15/11/2021', '132', '65', '0', '20', '217', 'none', 'invoice', 'paid'), |
| 92 | +(46, '4', '', '13/11/2021', '17/11/2021', '270', '65', '3', '34', '369', '', 'invoice', 'open'), |
| 93 | +(48, '5', '', '13/11/2021', '17/11/2021', '405', '20', '3', '43', '468', 'none', 'invoice', 'open'), |
| 94 | +(49, '6', '', '13/11/2021', '18/11/2021', '534', '40', '7', '57', '631', '', 'invoice', 'open'), |
| 95 | +(51, '7', '', '13/11/2021', '16/11/2021', '600', '20', '4', '62', '682', 'Cleared Up!', 'invoice', 'paid'), |
| 96 | +(52, '8', '', '13/11/2021', '15/11/2021', '153', '20', '2', '17', '190', '', 'invoice', 'open'), |
| 97 | +(53, '9', '', '15/11/2021', '17/11/2021', '115', '25', '0', '14', '154', '', 'invoice', 'open'), |
| 98 | +(54, '10', '', '15/11/2021', '16/11/2021', '154', '30', '2', '18', '202', '', 'invoice', 'open'); |
| 99 | + |
| 100 | +-- -------------------------------------------------------- |
| 101 | + |
| 102 | +-- |
| 103 | +-- Table structure for table `invoice_items` |
| 104 | +-- |
| 105 | + |
| 106 | +CREATE TABLE `invoice_items` ( |
| 107 | + `id` int(11) NOT NULL, |
| 108 | + `invoice` varchar(255) NOT NULL, |
| 109 | + `product` text NOT NULL, |
| 110 | + `qty` int(11) NOT NULL, |
| 111 | + `price` varchar(255) NOT NULL, |
| 112 | + `discount` varchar(255) NOT NULL, |
| 113 | + `subtotal` varchar(255) NOT NULL |
| 114 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| 115 | + |
| 116 | +-- |
| 117 | +-- Dumping data for table `invoice_items` |
| 118 | +-- |
| 119 | + |
| 120 | +INSERT INTO `invoice_items` (`id`, `invoice`, `product`, `qty`, `price`, `discount`, `subtotal`) VALUES |
| 121 | +(90, '5', 'Product One - This is a sample product one.', 12, '34', '3', '405.00'), |
| 122 | +(89, '4', 'Product Two - This is a sample product two.', 21, '13', '3', '270.00'), |
| 123 | +(91, '6', 'Product Four - This is a sample product four.', 5, '5', '2', '23.00'), |
| 124 | +(92, '6', 'Product Five - This is a sample product five.', 6, '86', '5', '511.00'), |
| 125 | +(95, '8', 'Product Seven - This is a sample product seven.', 5, '23', '0', '115.00'), |
| 126 | +(96, '8', 'Product Four - This is a sample product four.', 8, '5', '2', '38.00'), |
| 127 | +(97, '9', 'Product Seven - This is a sample product seven.', 5, '23', '0', '115.00'), |
| 128 | +(98, '10', 'Product Six - This is a sample product six.', 13, '12', '2', '154.00'); |
| 129 | + |
| 130 | +-- -------------------------------------------------------- |
| 131 | + |
| 132 | +-- |
| 133 | +-- Table structure for table `products` |
| 134 | +-- |
| 135 | + |
| 136 | +CREATE TABLE `products` ( |
| 137 | + `product_id` int(11) NOT NULL, |
| 138 | + `product_name` text NOT NULL, |
| 139 | + `product_desc` text NOT NULL, |
| 140 | + `product_price` varchar(255) DEFAULT NULL |
| 141 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| 142 | + |
| 143 | +-- |
| 144 | +-- Dumping data for table `products` |
| 145 | +-- |
| 146 | + |
| 147 | +INSERT INTO `products` (`product_id`, `product_name`, `product_desc`, `product_price`) VALUES |
| 148 | +(979, 'Product One', 'This is a sample product one.', '34'), |
| 149 | +(980, 'Product Two', 'This is a sample product two.', '13'), |
| 150 | +(981, 'Product Three', 'This is a sample product three.', '68'), |
| 151 | +(982, 'Product Four', 'This is a sample product four.', '5'), |
| 152 | +(983, 'Product Five', 'This is a sample product five.', '86'), |
| 153 | +(984, 'Product Six', 'This is a sample product six.', '12'), |
| 154 | +(985, 'Product Seven', 'This is a sample product seven.', '23'), |
| 155 | +(986, 'Product Eight', 'This is a sample product eight.', '19'); |
| 156 | + |
| 157 | +-- -------------------------------------------------------- |
| 158 | + |
| 159 | +-- |
| 160 | +-- Table structure for table `store_customers` |
| 161 | +-- |
| 162 | + |
| 163 | +CREATE TABLE `store_customers` ( |
| 164 | + `id` int(11) NOT NULL, |
| 165 | + `name` varchar(255) NOT NULL, |
| 166 | + `email` varchar(255) NOT NULL, |
| 167 | + `address_1` varchar(255) NOT NULL, |
| 168 | + `address_2` varchar(255) NOT NULL, |
| 169 | + `town` varchar(255) NOT NULL, |
| 170 | + `county` varchar(255) NOT NULL, |
| 171 | + `postcode` varchar(255) NOT NULL, |
| 172 | + `phone` varchar(100) NOT NULL, |
| 173 | + `name_ship` varchar(255) NOT NULL, |
| 174 | + `address_1_ship` varchar(255) NOT NULL, |
| 175 | + `address_2_ship` varchar(255) NOT NULL, |
| 176 | + `town_ship` varchar(255) NOT NULL, |
| 177 | + `county_ship` varchar(255) NOT NULL, |
| 178 | + `postcode_ship` varchar(255) NOT NULL |
| 179 | +) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| 180 | + |
| 181 | +-- |
| 182 | +-- Dumping data for table `store_customers` |
| 183 | +-- |
| 184 | + |
| 185 | +INSERT INTO `store_customers` (`id`, `name`, `email`, `address_1`, `address_2`, `town`, `county`, `postcode`, `phone`, `name_ship`, `address_1_ship`, `address_2_ship`, `town_ship`, `county_ship`, `postcode_ship`) VALUES |
| 186 | +(53, 'Wendy Reilly', 'wendy@mail.com', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488', '3214444444', 'Wendy Reilly', '3605 Cost Avenue', '3605 Cost Avenue', 'Wharton', 'US', '77488'), |
| 187 | +(54, 'Albert M Dunford', 'albd@mail.com', '1143 Kuhl Avenue', '1143 Kuhl Avenue', 'Norcross', 'US', '30092', '8520000010', 'Albert M Dunford', '1143 Kuhl Avenue', '1143 Kuhl Avenue', 'Norcross', 'US', '30092'), |
| 188 | +(55, 'Anne B Ruch', 'anner@mail.com', '4039 Overlook Drive', '6939 Dt Drive', 'Indianapolis', 'US', '46225', '1478500000', 'Anne B Ruch', '4039 Overlook Drive', '6939 Dt Drive', 'Indianapolis', 'US', '46225'), |
| 189 | +(56, 'Celeste Prather', 'celeste@mail.com', '421 Fincham Road', '421 Fincham Road', 'San Diego', 'US', '90000', '8021111111', 'Celeste Prather', '421 Fincham Road', '421 Fincham Road', 'San Diego', 'US', '90000'), |
| 190 | +(57, 'Katharine Mayer', 'kathmay@mail.com', '508 Bernardo Street', '508 Bernardo Street', 'Tampa', 'US', '90000', '9014555500', 'Katharine Mayer', '508 Bernardo Street', '508 Bernardo Street', 'Tampa', 'US', '90000'), |
| 191 | +(58, 'Rose Thompson', 'thompsonr@mail.com', '2374 Berkley Street', '2374 Berkley Street', 'Northampton', 'US', '01010', '7410000020', 'Rose Thompson', '2374 Berkley Street', '2374 Berkley Street', 'Northampton', 'US', '01010'), |
| 192 | +(59, 'Ira Turner', 'iratur@mail.com', '1387 Pine Street', '1387 Pine Street', 'Pittsburgh', 'US', '10005', '7890002222', 'Ira Turner', '1387 Pine Street', '1387 Pine Street', 'Pittsburgh', 'US', '10005'), |
| 193 | +(60, 'Richards', 'richards@mail.com', '311 Bchwood Drive', '311 Bchwood Drive', 'Bridgeville', 'US', '50005', '7410000014', 'Richards', '311 Bchwood Drive', '311 Bchwood Drive', 'Bridgeville', 'US', '50005'), |
| 194 | +(61, 'Allan Deer', 'allande@mail.com', '1702 Modoc Alley', '1702 Modoc Alley', 'White Bird', 'US', '55550', '8520001450', 'Allan Deer', '1702 Modoc Alley', '1702 Modoc Alley', 'White Bird', 'US', '55550'), |
| 195 | +(62, 'Demo User', 'demouser@mail.com', '115 Demo Address', '116 Demo Address', 'DemoTown', 'DemoCn', '00020', '7777777777', 'Demo User', '115 Demo Address', '116 Demo Address', 'DemoTown', 'DemoCn', '00020'); |
| 196 | + |
| 197 | +-- -------------------------------------------------------- |
| 198 | + |
| 199 | +-- |
| 200 | +-- Table structure for table `users` |
| 201 | +-- |
| 202 | + |
| 203 | +CREATE TABLE `users` ( |
| 204 | + `id` int(11) NOT NULL, |
| 205 | + `name` varchar(255) NOT NULL, |
| 206 | + `username` varchar(100) NOT NULL, |
| 207 | + `email` varchar(100) NOT NULL, |
| 208 | + `phone` varchar(100) NOT NULL, |
| 209 | + `password` varchar(200) NOT NULL |
| 210 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| 211 | + |
| 212 | +-- |
| 213 | +-- Dumping data for table `users` |
| 214 | +-- |
| 215 | + |
| 216 | +INSERT INTO `users` (`id`, `name`, `username`, `email`, `phone`, `password`) VALUES |
| 217 | +(1, 'Liam Moore', 'admin', 'admin@codeastro.com', '7896541250', 'd00f5d5217896fb7fd601412cb890830'); |
| 218 | + |
| 219 | +-- |
| 220 | +-- Indexes for dumped tables |
| 221 | +-- |
| 222 | + |
| 223 | +-- |
| 224 | +-- Indexes for table `customers` |
| 225 | +-- |
| 226 | +ALTER TABLE `customers` |
| 227 | + ADD PRIMARY KEY (`id`); |
| 228 | + |
| 229 | +-- |
| 230 | +-- Indexes for table `invoices` |
| 231 | +-- |
| 232 | +ALTER TABLE `invoices` |
| 233 | + ADD PRIMARY KEY (`id`); |
| 234 | + |
| 235 | +-- |
| 236 | +-- Indexes for table `invoice_items` |
| 237 | +-- |
| 238 | +ALTER TABLE `invoice_items` |
| 239 | + ADD PRIMARY KEY (`id`); |
| 240 | + |
| 241 | +-- |
| 242 | +-- Indexes for table `products` |
| 243 | +-- |
| 244 | +ALTER TABLE `products` |
| 245 | + ADD PRIMARY KEY (`product_id`); |
| 246 | + |
| 247 | +-- |
| 248 | +-- Indexes for table `store_customers` |
| 249 | +-- |
| 250 | +ALTER TABLE `store_customers` |
| 251 | + ADD PRIMARY KEY (`id`); |
| 252 | + |
| 253 | +-- |
| 254 | +-- Indexes for table `users` |
| 255 | +-- |
| 256 | +ALTER TABLE `users` |
| 257 | + ADD PRIMARY KEY (`id`); |
| 258 | + |
| 259 | +-- |
| 260 | +-- AUTO_INCREMENT for dumped tables |
| 261 | +-- |
| 262 | + |
| 263 | +-- |
| 264 | +-- AUTO_INCREMENT for table `customers` |
| 265 | +-- |
| 266 | +ALTER TABLE `customers` |
| 267 | + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; |
| 268 | +-- |
| 269 | +-- AUTO_INCREMENT for table `invoices` |
| 270 | +-- |
| 271 | +ALTER TABLE `invoices` |
| 272 | + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55; |
| 273 | +-- |
| 274 | +-- AUTO_INCREMENT for table `invoice_items` |
| 275 | +-- |
| 276 | +ALTER TABLE `invoice_items` |
| 277 | + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99; |
| 278 | +-- |
| 279 | +-- AUTO_INCREMENT for table `products` |
| 280 | +-- |
| 281 | +ALTER TABLE `products` |
| 282 | + MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=987; |
| 283 | +-- |
| 284 | +-- AUTO_INCREMENT for table `store_customers` |
| 285 | +-- |
| 286 | +ALTER TABLE `store_customers` |
| 287 | + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63; |
| 288 | +-- |
| 289 | +-- AUTO_INCREMENT for table `users` |
| 290 | +-- |
| 291 | +ALTER TABLE `users` |
| 292 | + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; |
| 293 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
| 294 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
| 295 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
0 commit comments