diff --git a/BDD/games_data.sql b/BDD/games_data.sql deleted file mode 100644 index f9af0efe2a6eeb62ee0ab22b7fe372ab9c8d9083..0000000000000000000000000000000000000000 Binary files a/BDD/games_data.sql and /dev/null differ diff --git a/BDD/games_schema.sql b/BDD/games_schema.sql deleted file mode 100644 index 5c790cbee5e02dce478083b9b9776d7dd91dd707..0000000000000000000000000000000000000000 --- a/BDD/games_schema.sql +++ /dev/null @@ -1,191 +0,0 @@ --- Adminer 4.2.2 MySQL dump - -SET NAMES utf8; -SET time_zone = '+00:00'; -SET foreign_key_checks = 0; -SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; - -DROP TABLE IF EXISTS `character`; -CREATE TABLE `character` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL, - `real_name` varchar(128) DEFAULT NULL, - `last_name` varchar(128) DEFAULT NULL, - `alias` varchar(128) DEFAULT NULL, - `birthday` datetime DEFAULT NULL, - `gender` tinyint(4) DEFAULT NULL, - `deck` mediumtext, - `description` longtext, - `first_appeared_in_game_id` int(11) DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `company`; -CREATE TABLE `company` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL, - `alias` varchar(128) DEFAULT NULL, - `abbreviation` varchar(64) DEFAULT NULL, - `deck` mediumtext, - `description` longtext, - `date_founded` datetime DEFAULT NULL, - `location_address` varchar(256) DEFAULT NULL, - `location_city` varchar(128) DEFAULT NULL, - `location_country` varchar(128) DEFAULT NULL, - `location_state` varchar(128) DEFAULT NULL, - `phone` varchar(64) DEFAULT NULL, - `website` varchar(256) DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `enemies`; -CREATE TABLE `enemies` ( - `char1_id` int(11) NOT NULL, - `char2_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `friends`; -CREATE TABLE `friends` ( - `char1_id` int(11) NOT NULL, - `char2_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game`; -CREATE TABLE `game` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) DEFAULT NULL, - `alias` varchar(128) DEFAULT NULL, - `deck` mediumtext, - `description` longtext, - `expected_release_day` int(11) DEFAULT NULL, - `expected_release_month` int(11) DEFAULT NULL, - `expected_release_quarter` int(11) DEFAULT NULL, - `expected_release_year` int(11) DEFAULT NULL, - `original_release_date` datetime DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game2character`; -CREATE TABLE `game2character` ( - `game_id` int(11) NOT NULL, - `character_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game2genre`; -CREATE TABLE `game2genre` ( - `game_id` int(11) NOT NULL, - `genre_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game2platform`; -CREATE TABLE `game2platform` ( - `game_id` int(11) NOT NULL, - `platform_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game2rating`; -CREATE TABLE `game2rating` ( - `game_id` int(11) NOT NULL, - `rating_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game2theme`; -CREATE TABLE `game2theme` ( - `game_id` int(11) NOT NULL, - `theme_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game_developers`; -CREATE TABLE `game_developers` ( - `game_id` int(11) NOT NULL, - `comp_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game_publishers`; -CREATE TABLE `game_publishers` ( - `game_id` int(11) NOT NULL, - `comp_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `game_rating`; -CREATE TABLE `game_rating` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) DEFAULT NULL, - `rating_board_id` int(11) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `genre`; -CREATE TABLE `genre` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) DEFAULT NULL, - `deck` mediumtext, - `description` longtext, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `platform`; -CREATE TABLE `platform` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL, - `alias` varchar(128) DEFAULT NULL, - `abbreviation` varchar(64) DEFAULT NULL, - `deck` mediumtext, - `description` longtext, - `c_id` int(11) DEFAULT NULL, - `install_base` bigint(20) DEFAULT NULL, - `release_date` datetime DEFAULT NULL, - `online_support` tinyint(4) DEFAULT NULL, - `original_price` decimal(10,2) DEFAULT NULL, - `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated_at` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `rating_board`; -CREATE TABLE `rating_board` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) NOT NULL, - `deck` text, - `description` longtext, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `similar_games`; -CREATE TABLE `similar_games` ( - `game1_id` int(11) NOT NULL, - `game2_id` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -DROP TABLE IF EXISTS `theme`; -CREATE TABLE `theme` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(64) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - --- 2015-12-29 15:37:32 diff --git a/BDD/requetes_TP1.txt b/BDD/requetes_TP1.txt deleted file mode 100644 index cd89e762052bc7d6cd6adc5d0e4d04eea7abeaf5..0000000000000000000000000000000000000000 --- a/BDD/requetes_TP1.txt +++ /dev/null @@ -1,7 +0,0 @@ -SELECT * FROM game WHERE name LIKE '%Mario%'; -SELECT name FROM company WHERE location_country='Japan'; -SELECT name FROM platform WHERE install_base >= 10000000; -SELECT * FROM game WHERE id>=21173 LIMIT 442; -SELECT name, deck FROM game LIMIT 500; - -