Created
July 4, 2025 11:29
-
-
Save jacobsapps/08b59ac5fb9595b4b1de969baff80f21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Model | |
| final class CardEntity { | |
| @Attribute(.unique) var id: UUID | |
| var title: String | |
| var emoji: String | |
| var hexColor: String | |
| var rarity: String | |
| var thumbnailPath: String? | |
| var fullImagePath: String? | |
| var cutoutPath: String? | |
| var createdAt: Date | |
| var imageData: Data? | |
| @Relationship(inverse: \StatEntity.card) var stats: [StatEntity] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment