Init
This commit is contained in:
37
szlib/data.odin
Normal file
37
szlib/data.odin
Normal file
@@ -0,0 +1,37 @@
|
||||
package szlib
|
||||
|
||||
Dataset :: struct {
|
||||
name: string,
|
||||
id: string,
|
||||
uuid: string,
|
||||
data_object_type: 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 {
|
||||
|
||||
}
|
||||
|
||||
SzTemplateField :: struct {
|
||||
id: string,
|
||||
type: SzFieldType,
|
||||
is_list: bool,
|
||||
default_value: string,
|
||||
}
|
||||
|
||||
SzFieldType :: enum {
|
||||
TEXT, NUMBER, BOOL, FORMULA, REF
|
||||
}
|
||||
Reference in New Issue
Block a user