Created
March 4, 2026 12:01
-
-
Save jacobsapps/05d318b83d864ea1445ba8f8646566cf 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
| enum UploadJobState: String, Codable { | |
| case pending | |
| case uploading | |
| case succeeded | |
| case failed | |
| } | |
| @Model | |
| final class PersistedUploadJob { | |
| @Attribute(.unique) var id: UUID | |
| var text: String | |
| var createdAt: Date | |
| var updatedAt: Date | |
| var attempts: Int | |
| var lastError: String? | |
| var state: String | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment