         canUpload = dictionary.JSONValueForKey("can_upload_shot") ?? false
         type = dictionary.JSONValueForKey("type") ?? ""
         isPro = dictionary.JSONValueForKey("pro") ?? false
+        created = dictionary.JSONValueForKey("created_at") ?? Date()
+        updated = dictionary.JSONValueForKey("updated_at") ?? Date()
+        if let linksDict = dictionary["links"] as? [String:String] {
+            links = DBLink.links(from: linksDict)
+        } else {
+            links = nil
+        }
     }
 }
 

        name = dictionary.JSONValueForKey("name") ?? ""
        username = dictionary.JSONValueForKey("username") ?? ""
        avatarUrl = dictionary.JSONValueForKey("avatar_url")
        bio = dictionary.JSONValueForKey("bio") ?? ""
        location = dictionary.JSONValueForKey("location") ?? ""
        bucketsCount = dictionary.JSONValueForKey("buckets_count") ?? 0

    public let canUpload: Bool
    public let type: String
    public let isPro: Bool
    public let created: Date
    public let updated: Date
}

extension DBUser {
