34 lines
2.6 KiB
JSON
34 lines
2.6 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(rm:*)",
|
|
"Bash(mvn clean compile:*)",
|
|
"Bash(mvn compile:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(find:*)",
|
|
"Bash(tee:*)",
|
|
"Bash(mvn clean install:*)",
|
|
"Bash(compile.log)",
|
|
"Bash(mysql:*)",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h 127.0.0.1 -P 33066 -u root -p123456 -e \"CREATE DATABASE IF NOT EXISTS martial_db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -e \"SHOW DATABASES;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"SHOW TABLES;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\":*)",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"DESC martial_competition;\")",
|
|
"Bash(for table in martial_athlete martial_registration_order martial_project martial_venue martial_judge martial_score martial_result martial_schedule)",
|
|
"Bash(do echo \"=== $table ===\" \"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"DESC $table;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"DESC martial_athlete;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"DESC martial_registration_order;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"DESC martial_score;\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"SHOW TABLES LIKE ''mt_%'';\")",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"SHOW TABLES LIKE ''martial_%'';\")",
|
|
"Bash(mvn spring-boot:run:*)",
|
|
"Bash(curl:*)",
|
|
"Bash(python -m json.tool:*)",
|
|
"Bash(\"/d/Program Files/mysql-8.0.32-winx64/bin/mysql\" -h localhost -P 3306 -u root -p123456 -D martial_db -e \"\nSELECT \n TABLE_NAME,\n CASE WHEN SUM(COLUMN_NAME = ''status'') > 0 THEN ''✓'' ELSE ''✗'' END AS has_status\nFROM information_schema.COLUMNS \nWHERE TABLE_SCHEMA = ''martial_db'' \n AND TABLE_NAME IN (''martial_athlete'', ''martial_live_update'', ''martial_result'', ''martial_schedule_athlete'')\nGROUP BY TABLE_NAME\nORDER BY TABLE_NAME;\n\")"
|
|
],
|
|
"deny": [],
|
|
"ask": []
|
|
}
|
|
}
|