 
 import Foundation
 import YapDatabase
+import ValueCoding
 import YapDatabaseExtensions
 import TaylorSource
 

    return (a.color == b.color) && (a.uuid == b.uuid) && (a.date == b.date)
}

extension Event.Color: Saveable {
    public typealias Archive = EventColorArchiver

    enum Kind: Int {
        case Red = 1, Blue, Green
    }

    public var archive: Archive {
        return Archive(self)
    }

    var kind: Kind {

                return collection
            }

            if let event = Event.decode(object) {
                return event.color.description
            }
        }
