Add lead workflows, PDF signing, AR projects and photo gallery integration
This commit is contained in:
16
GasTankAR/Model/LeadARProjectLink.swift
Normal file
16
GasTankAR/Model/LeadARProjectLink.swift
Normal file
@ -0,0 +1,16 @@
|
||||
import Foundation
|
||||
import SwiftData
|
||||
|
||||
/// Integration-owned association; AR views never receive this model.
|
||||
@Model
|
||||
final class LeadARProjectLink {
|
||||
var leadID: String
|
||||
var offerID: String?
|
||||
@Relationship(deleteRule: .nullify) var project: Project?
|
||||
|
||||
init(leadID: String, offerID: String? = nil, project: Project) {
|
||||
self.leadID = leadID
|
||||
self.offerID = offerID
|
||||
self.project = project
|
||||
}
|
||||
}
|
||||
@ -11,6 +11,9 @@ import ARKit
|
||||
|
||||
@Model
|
||||
final class Project {
|
||||
var projectID: UUID = UUID()
|
||||
var projectName: String = ""
|
||||
|
||||
/// Identifier given by the user for the project. In DOCUframe terms
|
||||
/// it is the LeadID.
|
||||
var leadID: String
|
||||
|
||||
Reference in New Issue
Block a user