import Foundation
import CoreData

@objc(ClickLog)
public class ClickLog: NSManagedObject {

}

extension ClickLog {

    @nonobjc public class func fetchRequest() -> NSFetchRequest<ClickLog> {
        return NSFetchRequest<ClickLog>(entityName: "ClickLog")
    }

    @NSManaged public var clickedAt: Date
    @NSManaged public var link: Link

}

extension ClickLog : Identifiable {

    public var id: NSManagedObjectID {
        return self.objectID
    }
}
