Commit d171abef authored by rejane_frantzen's avatar rejane_frantzen
Browse files

ajout de la base de données au depot

parent 243d22f4
This diff is collapsed.
-- 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment