- Modification du schéma rappels : remplacement de nbJours par joursAvant pour correspondre à la structure réelle de la base de données - Correction des noms de colonnes pour utiliser exactement la même casse que la base de données (templateType, heureEnvoi, nomFichier, urlFichier, s3Key, typeFichier, tailleFichier, derniereExecution) - La page Rappels fonctionne maintenant correctement et affiche tous les rappels configurés sans erreurs SQL
130 lines
3.4 KiB
JSON
130 lines
3.4 KiB
JSON
{
|
|
"query": "SHOW COLUMNS FROM rappels;",
|
|
"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 SHOW COLUMNS FROM rappels;",
|
|
"rows": [
|
|
{
|
|
"Field": "id",
|
|
"Type": "int(11)",
|
|
"Null": "NO",
|
|
"Key": "PRI",
|
|
"Default": "NULL",
|
|
"Extra": "auto_increment"
|
|
},
|
|
{
|
|
"Field": "nom",
|
|
"Type": "varchar(255)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "templateType",
|
|
"Type": "varchar(50)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "timing",
|
|
"Type": "enum('pre_formation','post_formation')",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "pre_formation",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "joursAvant",
|
|
"Type": "int(11)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "heureEnvoi",
|
|
"Type": "varchar(5)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "09:00",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "actif",
|
|
"Type": "tinyint(1)",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "1",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "derniereExecution",
|
|
"Type": "timestamp",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "createdAt",
|
|
"Type": "timestamp",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "CURRENT_TIMESTAMP",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "updatedAt",
|
|
"Type": "timestamp",
|
|
"Null": "NO",
|
|
"Key": "",
|
|
"Default": "CURRENT_TIMESTAMP",
|
|
"Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP"
|
|
},
|
|
{
|
|
"Field": "nomFichier",
|
|
"Type": "varchar(255)",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "urlFichier",
|
|
"Type": "text",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "s3Key",
|
|
"Type": "varchar(500)",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "typeFichier",
|
|
"Type": "varchar(100)",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
},
|
|
{
|
|
"Field": "tailleFichier",
|
|
"Type": "int(11)",
|
|
"Null": "YES",
|
|
"Key": "",
|
|
"Default": "NULL",
|
|
"Extra": ""
|
|
}
|
|
],
|
|
"messages": [],
|
|
"stdout": "Field\tType\tNull\tKey\tDefault\tExtra\nid\tint(11)\tNO\tPRI\tNULL\tauto_increment\nnom\tvarchar(255)\tNO\t\tNULL\t\ntemplateType\tvarchar(50)\tNO\t\tNULL\t\ntiming\tenum('pre_formation','post_formation')\tNO\t\tpre_formation\t\njoursAvant\tint(11)\tNO\t\tNULL\t\nheureEnvoi\tvarchar(5)\tNO\t\t09:00\t\nactif\ttinyint(1)\tNO\t\t1\t\nderniereExecution\ttimestamp\tYES\t\tNULL\t\ncreatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\t\nupdatedAt\ttimestamp\tNO\t\tCURRENT_TIMESTAMP\tDEFAULT_GENERATED on update CURRENT_TIMESTAMP\nnomFichier\tvarchar(255)\tYES\t\tNULL\t\nurlFichier\ttext\tYES\t\tNULL\t\ns3Key\tvarchar(500)\tYES\t\tNULL\t\ntypeFichier\tvarchar(100)\tYES\t\tNULL\t\ntailleFichier\tint(11)\tYES\t\tNULL\t\n",
|
|
"stderr": "",
|
|
"execution_time_ms": 94
|
|
} |