@@ -14,6 +14,13 @@ import TabItem from "@theme/TabItem";
1414This document outlines the architecture of the database designed to store and manage various types of entities and their associated metadata.
1515
1616## Table Structure
17+ ### schema Table
18+ The ` schema ` table is designed to hold schema version for cortex database. Below is the structure of the table:
19+
20+ | Column Name | Data Type | Description |
21+ | --------------------| -----------| ---------------------------------------------------------|
22+ | schema_version | INTEGER | A unique schema version for database. |
23+
1724### models Table
1825The ` models ` table is designed to hold metadata about various AI models. Below is the structure of the table:
1926
@@ -22,4 +29,23 @@ The `models` table is designed to hold metadata about various AI models. Below i
2229| model_id | TEXT | A unique identifier for each model (Primary Key). |
2330| author_repo_id | TEXT | The identifier for the repository where the model is stored. |
2431| branch_name | TEXT | The branch name in the repository that contains the model. |
25- | path_to_model_yaml | TEXT | The file path to the YAML configuration file for the model. |
32+ | path_to_model_yaml | TEXT | The file path to the YAML configuration file for the model. |
33+ | model_alias | TEXT | The optional alias or friendly name for the model. |
34+ | model_format | TEXT | The format or type of the model (e.g., TensorFlow, PyTorch, GGUF, etc.). |
35+ | model_source | TEXT | The source or origin of the model (e.g., a URL or file path). |
36+ | status | TEXT | Current status of the model (e.g., "downloaded", "downloadable").. |
37+ | engine | TEXT | The name or identifier of the engine or framework used for running or deploying the model.. |
38+ | metadata | TEXT | Additional metadata or information about the model, such as a JSON string containing various attributes or properties. |
39+
40+ ### hardware Table
41+ The ` hardware ` table is designed to hold metadata about hardware information. Below is the structure of the table:
42+
43+ | Column Name | Data Type | Description |
44+ | --------------------| -----------| ---------------------------------------------------------|
45+ | uuid | TEXT | the primary key for the table, meaning that each row must have a unique value in this column. |
46+ | type | TEXT | The type of hardware. |
47+ | hardware_id | INTEGER | An integer value representing the hardware ID. |
48+ | software_id | INTEGER | An integer value representing the software ID associated with the hardware. |
49+ | activated | INTEGER | A boolean value (0 or 1) indicating whether the hardware is activated or not. |
50+ | priority | INTEGER | An integer value representing the priority associated with the hardware. |
51+
0 commit comments