 (s/def ::mimetype string?)
 (s/def ::thumbnail us/url-str?)
 (s/def ::id uuid?)
+(s/def ::version integer?)
 (s/def ::url us/url-str?)
 (s/def ::collection (s/nilable uuid?))
 (s/def ::user uuid?)
+
+(s/def ::collection-entity
+  (s/keys :req-un [::id
+                   ::name
+                   ::created-at
+                   ::modified-at
+                   ::user
+                   ::version]))
 
 (s/def ::image-entity
   (s/keys :req-un [::id


(defn collection-created
  [item]
  (CollectionCreated. item))

;; --- Create Collection


(defn collections-fetched
  [items]
  {:pre [(us/valid? (s/every ::collection-entity) items)]}
  (CollectionsFetched. items))

;; --- Fetch Color Collections
