05/11 Update issue's status, and inspector can changes issue's status

This commit is contained in:
Nguyen Ngo
2026-05-11 16:49:22 -04:00
parent c0b47ec132
commit 6367dac1e6
5 changed files with 238 additions and 27 deletions
+2
View File
@@ -15,6 +15,7 @@ final class LocalIssue {
var facilityServerId: Int // facility this issue belongs to (replaces areaServerId)
var severity: String // "low" | "medium" | "high" | "critical"
var issueDescription: String
var issueStatus: String = "open" // server status: "open" | "in_progress" | "resolved" | "pending_verification"
var photoLocalPath: String? // local file path before upload
var photoServerPath: String? // server path after upload
@@ -37,6 +38,7 @@ final class LocalIssue {
self.facilityServerId = facilityServerId
self.severity = severity
self.issueDescription = description
self.issueStatus = "open"
self.photoLocalPath = nil
self.photoServerPath = nil
self.createdAt = Date()