Go to documentation repository
Previous page Next page
To add objects to main.dbi, do the following:
Add objects to main.dbi. For this, you must specify the name used for the object identification in brackets and then declare its fields. The fields' declaration syntax looks in the following way:
<Field name>, <Type> [, <Size>]
Note
You can set Size only with the fields of the CHAR type.
The table below shows the fields mandatory for all objects in Axxon PSIM.
Field | Description |
id | Unique object ID |
name | Object name |
parent_id | Parent object ID |
flags | Parameter for internal system use |
Attention!
The following table describes the allowed data types.
Data type | Description |
BIT | Used for creating the flag field that takes logical values "Yes" or "No" |
CHAR | Used for fields that are filled in by the small number of characters |
DATETIME | Used for fields in which you must enter the date and time. The date format is YYYY-MM-DD, and the time format is HH:MM:SS.XXX |
DOUBLE | Used for fields that contain floating-point numbers |
INTEGER | Used for fields that contain integer numbers |
SMALLINT | Used for fields that contain integer numbers in the range from -32 768 to 32 767 |
TEXT | Used for fields that contain text strings |
UNIQUEIDENTIFIER | Used for fields where you must enter unique identifiers that guarantee the uniqueness not only within the table but also between different databases and servers |
Besides the mandatory fields for the objects of the DEMO module, the following fields are added:
As a result of the structure update, tables are created in the Axxon PSIM configuration database.