2023-01-30 16:54:18 +10:30
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"schemas"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"schemas": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"tablename",
|
|
|
|
"columns"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"tablename": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "the name of the table"
|
|
|
|
},
|
|
|
|
"columns": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "the columns, in database order",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
2023-01-30 16:54:18 +10:30
|
|
|
"description": "the name of the column"
|
2023-01-30 16:54:18 +10:30
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"INTEGER",
|
|
|
|
"BLOB",
|
|
|
|
"TEXT",
|
|
|
|
"REAL"
|
|
|
|
],
|
|
|
|
"description": "the SQL type of the column"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"indices": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "Any index we created to speed lookups",
|
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "The columns for this index",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The column name"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|