Created
January 9, 2024 14:40
-
-
Save siaikin/e14e83015bb93b651ccbb1b060397673 to your computer and use it in GitHub Desktop.
home dashboard cron service database json schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "https://github.com/siaikin/home-dashboard/internal/app/cron_service/project_db_utils/database", | |
"$ref": "#/$defs/Database", | |
"$defs": { | |
"Column": { | |
"properties": { | |
"name": { | |
"type": "string", | |
"title": "column name" | |
}, | |
"type": { | |
"type": "string", | |
"title": "column data type" | |
} | |
}, | |
"additionalProperties": false, | |
"type": "object", | |
"required": [ | |
"name", | |
"type" | |
] | |
}, | |
"Database": { | |
"properties": { | |
"tables": { | |
"items": { | |
"$ref": "#/$defs/Table" | |
}, | |
"type": "array", | |
"title": "tables" | |
} | |
}, | |
"additionalProperties": false, | |
"type": "object", | |
"required": [ | |
"tables" | |
] | |
}, | |
"Table": { | |
"properties": { | |
"name": { | |
"type": "string", | |
"title": "table name" | |
}, | |
"columns": { | |
"items": { | |
"$ref": "#/$defs/Column" | |
}, | |
"type": "array", | |
"title": "columns" | |
} | |
}, | |
"additionalProperties": false, | |
"type": "object", | |
"required": [ | |
"name", | |
"columns" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment