Для того щоб створити модель, потрібно перейти в розділ "Створити/оновити" і заповнити параметри моделі
Параметри схеми:
{
"minimal":{"type":"INTEGER"},
"column_name": {
"type":"STRING", //Required, can be also "INTEGER" | "DATE" | "BOOLEAN" | "FLOAT" | "TEXT"
"align":"start", //optional align of header in table
"default":"default value", //optional
"unique":"true"|"false", //optional
"label":"custom name", //optional
"width": "10", //column width
"hidden_in_table":"true"|"false", // optional; if true, will be turned off in columns chooser
"hidden_all":"true"|"false", // optional; if true, will be hidden in all contexts (except in filters)
"sortable":"true"|"false", // optional; if true, column sortable in table
"non_editable":"true"|"false", // optional; if true, column not editable in table
"display_type":"link", // optional; if 'link', column has clickable link opening in new tab
"click_action":"open", // optional; if 'open', column has button opening edit modal
"file_upload": true, //optional, for file uploading; important only "type": "JSON",
"association": {
"*__color": "hex code" //for colorized in select field name in model which will be associated
}
}
}
<aside> ⚠️ При зміні схеми при додаванні стовпців дані зберігаються. Виняток тільки при видаленні колонок - дані видаляться і при зміні типу стовпця, якщо приведення типу неможливе, наприклад рядок до числа
</aside>