mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
update BDD
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost:3306
|
||||
-- Generation Time: Dec 23, 2022 at 05:51 PM
|
||||
-- Generation Time: Dec 24, 2022 at 10:59 PM
|
||||
-- Server version: 8.0.31-0ubuntu0.20.04.1
|
||||
-- PHP Version: 7.4.3
|
||||
|
||||
@@ -30,8 +30,8 @@ SET time_zone = "+00:00";
|
||||
|
||||
CREATE TABLE `auteurs` (
|
||||
`id` int NOT NULL,
|
||||
`sexe` tinytext NOT NULL,
|
||||
`age` tinyint NOT NULL
|
||||
`sexe` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
|
||||
`age` tinyint DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -43,9 +43,9 @@ CREATE TABLE `auteurs` (
|
||||
CREATE TABLE `avis_borne` (
|
||||
`id` int NOT NULL,
|
||||
`id_auteur` int NOT NULL,
|
||||
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`note_principale` tinyint NOT NULL,
|
||||
`notes_autre` text NOT NULL COMMENT 'Liste d''entiers séparés par des ; => notes sur des aspects spécifiques',
|
||||
`notes_autre` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'Notes spécifiques au format JSON',
|
||||
`commentaire` text NOT NULL,
|
||||
`source_id` int NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
@@ -73,21 +73,10 @@ CREATE TABLE `reseaux_sociaux_avis` (
|
||||
`id` int NOT NULL,
|
||||
`date` date NOT NULL,
|
||||
`source_id` int NOT NULL,
|
||||
`note` tinyint NOT NULL,
|
||||
`texte` text NOT NULL,
|
||||
`note` tinyint DEFAULT NULL,
|
||||
`commentaire` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
|
||||
`auteur_id` int NOT NULL,
|
||||
`lien_source` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `reseaux_sociaux_sources`
|
||||
--
|
||||
|
||||
CREATE TABLE `reseaux_sociaux_sources` (
|
||||
`id` int NOT NULL,
|
||||
`nom` text NOT NULL
|
||||
`lien_source` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -101,6 +90,15 @@ CREATE TABLE `sources` (
|
||||
`nom` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `sources`
|
||||
--
|
||||
|
||||
INSERT INTO `sources` (`id`, `nom`) VALUES
|
||||
(1, 'website'),
|
||||
(2, 'borne'),
|
||||
(3, 'instagram');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
@@ -146,12 +144,6 @@ ALTER TABLE `reseaux_sociaux_auteurs`
|
||||
ALTER TABLE `reseaux_sociaux_avis`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `reseaux_sociaux_sources`
|
||||
--
|
||||
ALTER TABLE `reseaux_sociaux_sources`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `sources`
|
||||
--
|
||||
@@ -192,17 +184,11 @@ ALTER TABLE `reseaux_sociaux_auteurs`
|
||||
ALTER TABLE `reseaux_sociaux_avis`
|
||||
MODIFY `id` int NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `reseaux_sociaux_sources`
|
||||
--
|
||||
ALTER TABLE `reseaux_sociaux_sources`
|
||||
MODIFY `id` int NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `sources`
|
||||
--
|
||||
ALTER TABLE `sources`
|
||||
MODIFY `id` int NOT NULL AUTO_INCREMENT;
|
||||
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `stats_mois`
|
||||
@@ -213,4 +199,4 @@ COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
Reference in New Issue
Block a user