Starting to add template data types
This commit is contained in:
@@ -1,37 +1,47 @@
|
||||
package szlib
|
||||
|
||||
Dataset :: struct {
|
||||
name: string,
|
||||
id: string,
|
||||
uuid: string,
|
||||
data_object_type: string,
|
||||
objects: [dynamic]SzDataObject
|
||||
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
|
||||
name: string,
|
||||
id: string,
|
||||
fields: [dynamic]SzField,
|
||||
}
|
||||
|
||||
SzField :: struct {
|
||||
id: string,
|
||||
type: SzFieldType,
|
||||
is_list: bool,
|
||||
value: string,
|
||||
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,
|
||||
id: string,
|
||||
type: SzFieldType,
|
||||
is_list: bool,
|
||||
default_value: string,
|
||||
}
|
||||
|
||||
SzFieldType :: enum {
|
||||
TEXT, NUMBER, BOOL, FORMULA, REF
|
||||
TEXT,
|
||||
NUMBER,
|
||||
BOOL,
|
||||
FORMULA,
|
||||
REF,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user