If I use @Model
to tell SwiftData to persist a class with its properties, does it add a property to use as a primary key?
And if so, is it an incrementing integer? What is it called?
Is that key used to persist the foreign keys for related records in other tables?
Here’s an example.
@Model
class MICCard {
var suit: MICSuit
var faceValue: MICFaceValue
}