rgb-cln/doc/schemas/listsqlschemas.schema.json

68 lines
1.7 KiB
JSON

{
"$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",
"description": "the name of the column"
},
"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"
}
}
}
}
}
}
}
}