@@ -10,17 +10,34 @@ mutable struct User <: AbstractCGNode
10
10
id:: Symbol
11
11
name:: String
12
12
description:: String
13
- # labels::Vector{Symbol}
14
13
data:: Dict{Symbol, String}
14
+ createdTimestamp:: String
15
+ lastUpdatedTimestamp:: String
16
+ User (id:: Symbol ,
17
+ name:: String ,
18
+ description:: String ,
19
+ data:: Dict{Symbol, String} ,
20
+ createdTimestamp:: String = string (now (UTC)),
21
+ lastUpdatedTimestamp:: String = string (now (UTC))) =
22
+ new (id, name, description, data, createdTimestamp, lastUpdatedTimestamp)
15
23
end
16
24
17
25
mutable struct Robot <: AbstractCGNode
18
26
id:: Symbol
19
27
userId:: Symbol
20
28
name:: String
21
29
description:: String
22
- # labels::Vector{Symbol}
23
30
data:: Dict{Symbol, String}
31
+ createdTimestamp:: String
32
+ lastUpdatedTimestamp:: String
33
+ Robot (id:: Symbol ,
34
+ userId:: Symbol ,
35
+ name:: String ,
36
+ description:: String ,
37
+ data:: Dict{Symbol, String} ,
38
+ createdTimestamp:: String = string (now (UTC)),
39
+ lastUpdatedTimestamp:: String = string (now (UTC))) =
40
+ new (id, userId, name, description, data, createdTimestamp, lastUpdatedTimestamp)
24
41
end
25
42
26
43
mutable struct Session <: AbstractCGNode
@@ -29,6 +46,17 @@ mutable struct Session <: AbstractCGNode
29
46
userId:: Symbol
30
47
name:: String
31
48
description:: String
32
- # labels::Vector{Symbol}
33
49
data:: Dict{Symbol, String}
50
+ createdTimestamp:: String
51
+ lastUpdatedTimestamp:: String
52
+ Session (id:: Symbol ,
53
+ robotId:: Symbol ,
54
+ userId:: Symbol ,
55
+ name:: String ,
56
+ description:: String ,
57
+ data:: Dict{Symbol, String} ,
58
+ createdTimestamp:: String = string (now (UTC)),
59
+ lastUpdatedTimestamp:: String = string (now (UTC))) =
60
+ new (id, robotId,userId, name, description, data, createdTimestamp, lastUpdatedTimestamp)
61
+
34
62
end
0 commit comments