{
  "query": "CREATE TABLE historiqueAttestations (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  sequenceId INT NOT NULL,\n  apprenantId INT NOT NULL,\n  dateEnvoi TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  statut ENUM('envoye', 'erreur') NOT NULL,\n  messageErreur TEXT NULL,\n  urlAttestation VARCHAR(500) NULL,\n  createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  FOREIGN KEY (sequenceId) REFERENCES sequences(id) ON DELETE CASCADE,\n  FOREIGN KEY (apprenantId) REFERENCES apprenants(id) ON DELETE CASCADE\n);",
  "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.root --database 7PAT67UmWoxv8vwp8Bbcv6 --execute CREATE TABLE historiqueAttestations (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  sequenceId INT NOT NULL,\n  apprenantId INT NOT NULL,\n  dateEnvoi TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  statut ENUM('envoye', 'erreur') NOT NULL,\n  messageErreur TEXT NULL,\n  urlAttestation VARCHAR(500) NULL,\n  createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n  FOREIGN KEY (sequenceId) REFERENCES sequences(id) ON DELETE CASCADE,\n  FOREIGN KEY (apprenantId) REFERENCES apprenants(id) ON DELETE CASCADE\n);",
  "rows": [],
  "messages": [],
  "stdout": "",
  "stderr": "",
  "execution_time_ms": 261
}