@@ -22,6 +22,12 @@ public class AttributeRelationship {
2222 /// Is attribute an array?
2323 public let array : Bool ?
2424
25+ /// Attribute creation date in ISO 8601 format.
26+ public let createdAt : String
27+
28+ /// Attribute update date in ISO 8601 format.
29+ public let updatedAt : String
30+
2531 /// The ID of the related collection.
2632 public let relatedCollection : String
2733
@@ -48,6 +54,8 @@ public class AttributeRelationship {
4854 error: String ,
4955 `required`: Bool ,
5056 array: Bool ? ,
57+ createdAt: String ,
58+ updatedAt: String ,
5159 relatedCollection: String ,
5260 relationType: String ,
5361 twoWay: Bool ,
@@ -61,6 +69,8 @@ public class AttributeRelationship {
6169 self . error = error
6270 self . `required` = `required`
6371 self . array = array
72+ self . createdAt = createdAt
73+ self . updatedAt = updatedAt
6474 self . relatedCollection = relatedCollection
6575 self . relationType = relationType
6676 self . twoWay = twoWay
@@ -77,6 +87,8 @@ public class AttributeRelationship {
7787 " error " : error as Any ,
7888 " `required` " : `required` as Any ,
7989 " array " : array as Any ,
90+ " $createdAt " : createdAt as Any ,
91+ " $updatedAt " : updatedAt as Any ,
8092 " relatedCollection " : relatedCollection as Any ,
8193 " relationType " : relationType as Any ,
8294 " twoWay " : twoWay as Any ,
@@ -94,6 +106,8 @@ public class AttributeRelationship {
94106 error: map [ " error " ] as! String ,
95107 `required`: map [ " required " ] as! Bool ,
96108 array: map [ " array " ] as? Bool ,
109+ createdAt: map [ " $createdAt " ] as! String ,
110+ updatedAt: map [ " $updatedAt " ] as! String ,
97111 relatedCollection: map [ " relatedCollection " ] as! String ,
98112 relationType: map [ " relationType " ] as! String ,
99113 twoWay: map [ " twoWay " ] as! Bool ,
0 commit comments