Skip to content

Instantly share code, notes, and snippets.

@siaikin
Created January 9, 2024 14:40
Show Gist options
  • Save siaikin/e14e83015bb93b651ccbb1b060397673 to your computer and use it in GitHub Desktop.
Save siaikin/e14e83015bb93b651ccbb1b060397673 to your computer and use it in GitHub Desktop.
home dashboard cron service database json schema
{
"$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