· 8 years ago · May 03, 2018, 01:52 PM
1CREATE DATABASE IF NOT EXISTS `simple-rest`;
2USE `simple-rest`;
3
4DROP TABLE IF EXISTS `book`;
5CREATE TABLE `book` (
6 `id` int(11) NOT NULL AUTO_INCREMENT,
7 `isbn` varchar(50) NOT NULL,
8 `name` varchar(255) NOT NULL,
9 `year` varchar(4) NOT NULL,
10 `author` varchar(255) NOT NULL,
11 `description` text NOT NULL,
12 `image` varchar(255) NOT NULL,
13 `createdAt` datetime NOT NULL,
14 `updatedAt` datetime NOT NULL,
15 PRIMARY KEY (id)
16);
17
18INSERT INTO `book` (`id`, `isbn`, `name`, `year`, `author`, `description`, `image`, `createdAt`, `updatedAt`) VALUES
19(1, '9781785883262', 'Android Programming for Beginners', '2015', 'John Horton', 'Learn Android application development with this accessible tutorial that takes you through Android and Java programming with practical and actionable steps.', '9781785883262.png', '2018-04-22 13:57:30', '0000-00-00 00:00:00'),
20(2, '9781787121799', 'Practical Game Design', '2018', 'Adam Kramarzewski, Ennio De Nucci', 'Design accessible and creative games across genres, platforms, and development realities', 'B06082.png', '0000-00-00 00:00:00', '2018-04-22 13:57:30'),
21(3, '9781788293631', 'Learn Node.js by Building 6 Projects', '2018', 'Eduonix Learning Solutions', 'This is an advanced, practical guide to harnessing the power of Node.js by creating 6 full-scale real-world projects, from creating a chat application to an eLearning system.', 'B07858_cover.png', '2018-04-22 13:57:14', '2018-04-22 13:57:14'),
22(17, '9781785283109', 'Multiplayer Game Development with HTML5', '2015', 'Rodrigo Silveira', 'Build fully-featured, highly interactive multiplayer games with HTML5', '3109OS_Multiplayer Game Development with HTML5.jpg', '2018-04-23 18:46:36', '2018-04-23 18:46:36'),
23(18, '9781788299954', 'Integrating Twitter and Facebook into Your iOS Apps', '2018', 'Nick Walter', 'Learn how to integrate Twitter and Facebook APIs into iOS apps', 'V07323_low.png', '2018-04-23 18:47:04', '2018-04-23 18:47:04');