Skip to content

Commit

Permalink
Re-ordered table population
Browse files Browse the repository at this point in the history
  • Loading branch information
jevuu committed May 14, 2018
1 parent ec7d817 commit f23d380
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions SQL/populateTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,25 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8 */;

--
-- Database: `panzooka_prj566`
-- Database: `panzooka_prj666`
--

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

INSERT INTO `items` (`itemID`, `userID`, `name`, `price`, `description`, `UPC`) VALUES
(1, 1, 'Ohan Bananas', 100, 'Bananas from Ohan''s banana farm', 612345678905),
(2, 1, 'PRJ566 Final Document', 200, 'Hey it''s something', 609876543215),
(3, 2, 'e-Ceipt App', 200, 'This app', 610293847565);
INSERT INTO `test` (`id`, `userName`, `name`, `created`, `comment`) VALUES
(1, 'JohnDoe', 'John Doe', '2018-03-28 05:00:00', 'Hello World'),
(2, 'JaneDoe', 'Jane Doe', '2018-03-29 00:40:27', 'Goodbye World');

--
-- Dumping data for table `receiptItems`
-- Dumping data for table `users`
--

INSERT INTO `receiptItems` (`receiptID`, `itemID`) VALUES
(1, 1),
(1, 2),
(2, 3);
INSERT INTO `users` (`userID`, `name`, `creationDate`, `photo`, `email`) VALUES
(1, 'John Doe', '2018-04-09', NULL, NULL),
(2, 'Jane Doe', '2018-04-09', '', ''),
(5, 'Justin', '2018-04-09', NULL, NULL);

--
-- Dumping data for table `receipts`
Expand All @@ -47,21 +46,22 @@ INSERT INTO `receipts` (`receiptID`, `userID`, `creationDate`, `totalCost`, `tax
(2, 2, '2018-04-09', 0, 0, 'Jane''s Receipt', NULL);

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

INSERT INTO `test` (`id`, `userName`, `name`, `created`, `comment`) VALUES
(1, 'JohnDoe', 'John Doe', '2018-03-28 05:00:00', 'Hello World'),
(2, 'JaneDoe', 'Jane Doe', '2018-03-29 00:40:27', 'Goodbye World');
INSERT INTO `items` (`itemID`, `userID`, `name`, `price`, `description`, `UPC`) VALUES
(1, 1, 'Ohan Bananas', 100, 'Bananas from Ohan''s banana farm', 612345678905),
(2, 1, 'PRJ566 Final Document', 200, 'Hey it''s something', 609876543215),
(3, 2, 'e-Ceipt App', 200, 'This app', 610293847565);

--
-- Dumping data for table `users`
-- Dumping data for table `receiptItems`
--

INSERT INTO `users` (`userID`, `name`, `creationDate`, `photo`, `email`) VALUES
(1, 'John Doe', '2018-04-09', NULL, NULL),
(2, 'Jane Doe', '2018-04-09', '', ''),
(5, 'Justin', '2018-04-09', NULL, NULL);
INSERT INTO `receiptItems` (`receiptID`, `itemID`) VALUES
(1, 1),
(1, 2),
(2, 3);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
Expand Down

0 comments on commit f23d380

Please sign in to comment.