9 lines
1.5 KiB
JSON
9 lines
1.5 KiB
JSON
{
|
|
"query": "CREATE TABLE IF NOT EXISTS `alertes` (\n `id` int AUTO_INCREMENT NOT NULL,\n `nom` varchar(255) NOT NULL,\n `type` enum('taux_remplissage', 'seuil_inscriptions') NOT NULL,\n `condition` varchar(10) NOT NULL,\n `valeurSeuil` int NOT NULL,\n `codeEtablissement` varchar(50),\n `emailsDestinataires` text NOT NULL,\n `actif` boolean NOT NULL DEFAULT true,\n `derniereVerification` timestamp,\n `dernierEnvoi` timestamp,\n `createdAt` timestamp NOT NULL DEFAULT (now()),\n `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,\n CONSTRAINT `alertes_id` PRIMARY KEY(`id`)\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 IF NOT EXISTS `alertes` (\n `id` int AUTO_INCREMENT NOT NULL,\n `nom` varchar(255) NOT NULL,\n `type` enum('taux_remplissage', 'seuil_inscriptions') NOT NULL,\n `condition` varchar(10) NOT NULL,\n `valeurSeuil` int NOT NULL,\n `codeEtablissement` varchar(50),\n `emailsDestinataires` text NOT NULL,\n `actif` boolean NOT NULL DEFAULT true,\n `derniereVerification` timestamp,\n `dernierEnvoi` timestamp,\n `createdAt` timestamp NOT NULL DEFAULT (now()),\n `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,\n CONSTRAINT `alertes_id` PRIMARY KEY(`id`)\n);",
|
|
"rows": [],
|
|
"messages": [],
|
|
"stdout": "",
|
|
"stderr": "",
|
|
"execution_time_ms": 402
|
|
} |