|
|
# Table Definitions
|
|
|
|
|
|
Updated with v1.0.
|
|
|
Updated with v1.1.
|
|
|
|
|
|
Table definitions is a JSON file used by HOTMapper to set the table's primary key(s) and foreign key(s). It's also used
|
|
|
to fill the data of an auxiliary that stores information about the table's source. This source table is
|
... | ... | @@ -35,6 +35,10 @@ The table_definitions JSON has four attributes in the following format: |
|
|
* "foreign_keys": <"list of strings, where each string represents a column of the table">
|
|
|
* Foreign keys of the table. This field can have zero or more.
|
|
|
<br/><br/>
|
|
|
|
|
|
* *optional* "columns": <dictionary with the columns name with the value being a list of the `type`, `column_id`>
|
|
|
* This field is automatically filled when executing a create or remap command with the table.
|
|
|
* Eg.: "columns": {"id": ["INT","OBJID"],...}.
|
|
|
|
|
|
The HOTMapper comes with an example of table definitions in the folder hotmapper/table_definitions, named
|
|
|
example_table_definition.json and shown bellow.
|
... | ... | |