diff GeoQuiz/Logic/PlayedGame+CoreDataProperties.swift @ 15:f1967f8cc67b

first iteration of core data
author Dennis C. M. <dennis@denniscm.com>
date Wed, 19 Oct 2022 10:04:17 +0200
parents
children e281791e0494
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GeoQuiz/Logic/PlayedGame+CoreDataProperties.swift	Wed Oct 19 10:04:17 2022 +0200
@@ -0,0 +1,30 @@
+//
+//  PlayedGame+CoreDataProperties.swift
+//  GeoQuiz
+//
+//  Created by Dennis Concepción Martín on 19/10/22.
+//
+//
+
+import Foundation
+import CoreData
+
+
+extension PlayedGame {
+
+    @nonobjc public class func fetchRequest() -> NSFetchRequest<PlayedGame> {
+        return NSFetchRequest<PlayedGame>(entityName: "PlayedGame")
+    }
+
+    @NSManaged public var id: UUID
+    @NSManaged public var type: GameType
+    @NSManaged public var score: Int32
+    @NSManaged public var date: Date
+    @NSManaged public var correctAnswers: [String]?
+    @NSManaged public var wrongAnswers: [String]?
+
+}
+
+extension PlayedGame : Identifiable {
+
+}