CREATE TABLE  IF NOT EXISTS donnees (
  id int(11) NOT NULL AUTO_INCREMENT,
  service varchar(12) NOT NULL,
  capteur varchar(12) NOT NULL,
  type varchar(12) NOT NULL,
  donnee varchar(12) NOT NULL,
  date_donnee datetime NOT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

CREATE INDEX grafana_index ON donnees(date_donnee, capteur, type);
