50 lines
873 B
Odin
50 lines
873 B
Odin
package szlib
|
|
|
|
Dataset :: struct {
|
|
name: string,
|
|
id: string,
|
|
uuid: string,
|
|
data_object_type: string,
|
|
data_object_template_id: string,
|
|
objects: [dynamic]SzDataObject,
|
|
}
|
|
|
|
SzDataObject :: struct {
|
|
name: string,
|
|
id: string,
|
|
fields: [dynamic]SzField,
|
|
}
|
|
|
|
SzField :: struct {
|
|
id: string,
|
|
type: SzFieldType,
|
|
is_list: bool,
|
|
value: string,
|
|
}
|
|
|
|
SzDataObjectTemplate :: struct {
|
|
name: string,
|
|
id: string,
|
|
uuid: string,
|
|
data_object_type: string,
|
|
fields: [dynamic]SzTemplateField,
|
|
}
|
|
|
|
SzTemplateField :: struct {
|
|
id: string,
|
|
type: SzFieldType,
|
|
is_list: bool,
|
|
default_value: string,
|
|
special_type: bool,
|
|
special_value: string,
|
|
}
|
|
|
|
SzFieldType :: enum {
|
|
TEXT,
|
|
NUMBER,
|
|
BOOL,
|
|
FORMULA,
|
|
REF,
|
|
}
|
|
|