passepartout-apple/Passepartout/Library/Sources/LegacyV2/CDProfile.swift
Davide 1491766102
Per-profile iCloud syncing (#668)
Keep two separate stores to accomplish per-profile sharing:

- Local store, where to push updates manually (save/remove/search)
- Remote iCloud store, where to pull updates from

A profile can be added/removed to/from the iCloud store so that other
devices can push/pull updates to it.

Consequently, updates to the iCloud store will NEVER cause a profile
deletion. Once removed, the profile will stay locally.

Fixes #586 
Fixes #555
2024-10-03 18:41:27 +02:00

17 lines
452 B
Swift

import CoreData
import Foundation
@objc(CDProfile)
final class CDProfile: NSManagedObject {
@nonobjc static func fetchRequest() -> NSFetchRequest<CDProfile> {
return NSFetchRequest<CDProfile>(entityName: "CDProfile")
}
@NSManaged var json: Data?
@NSManaged var encryptedJSON: Data?
@NSManaged var name: String?
@NSManaged var providerName: String?
@NSManaged var uuid: UUID?
@NSManaged var lastUpdate: Date?
}