mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
Syncronisation de la page d'accueil avec l'api
This commit is contained in:
@@ -116,8 +116,7 @@ CREATE TABLE `sources` (
|
||||
|
||||
INSERT INTO `sources` (`id`, `nom`) VALUES
|
||||
(1, 'website'),
|
||||
(2, 'borne'),
|
||||
(3, 'instagram');
|
||||
(2, 'borne');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@@ -180,11 +179,12 @@ CREATE TABLE `stats_autres_semaine` (
|
||||
CREATE TABLE `stats_general_annee` (
|
||||
`id` int NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`moyenne_globale` float NOT NULL,
|
||||
`moyenne_site` float NOT NULL,
|
||||
`moyenne_borne` float NOT NULL,
|
||||
`dist_age` text NOT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text NOT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
`nb_avis` int NOT NULL,
|
||||
`moyenne_globale` float DEFAULT NULL,
|
||||
`moyenne_site` float DEFAULT NULL,
|
||||
`moyenne_borne` float DEFAULT NULL,
|
||||
`dist_age` text DEFAULT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text DEFAULT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -196,11 +196,12 @@ CREATE TABLE `stats_general_annee` (
|
||||
CREATE TABLE `stats_general_jour` (
|
||||
`id` int NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`nb_avis` int NOT NULL,
|
||||
`moyenne_globale` float DEFAULT NULL,
|
||||
`moyenne_site` float DEFAULT NULL,
|
||||
`moyenne_borne` float DEFAULT NULL,
|
||||
`dist_age` text COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text COMMENT 'Distribution du sexe des auteurs'
|
||||
`dist_age` text DEFAULT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text DEFAULT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -212,11 +213,12 @@ CREATE TABLE `stats_general_jour` (
|
||||
CREATE TABLE `stats_general_mois` (
|
||||
`id` int NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`moyenne_globale` float NOT NULL,
|
||||
`moyenne_site` float NOT NULL,
|
||||
`moyenne_borne` float NOT NULL,
|
||||
`dist_age` text NOT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text NOT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
`nb_avis` int NOT NULL,
|
||||
`moyenne_globale` float DEFAULT NULL,
|
||||
`moyenne_site` float DEFAULT NULL,
|
||||
`moyenne_borne` float DEFAULT NULL,
|
||||
`dist_age` text DEFAULT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text DEFAULT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@@ -228,11 +230,12 @@ CREATE TABLE `stats_general_mois` (
|
||||
CREATE TABLE `stats_general_semaine` (
|
||||
`id` int NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`moyenne_globale` float NOT NULL,
|
||||
`moyenne_site` float NOT NULL,
|
||||
`moyenne_borne` float NOT NULL,
|
||||
`dist_age` text NOT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text NOT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
`nb_avis` int NOT NULL,
|
||||
`moyenne_globale` float DEFAULT NULL,
|
||||
`moyenne_site` float DEFAULT NULL,
|
||||
`moyenne_borne` float DEFAULT NULL,
|
||||
`dist_age` text DEFAULT NULL COMMENT 'Distribution de l''age des auteurs',
|
||||
`dist_sexe` text DEFAULT NULL COMMENT 'Distribution du sexe des auteurs'
|
||||
) ;
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user