mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
53 lines
1.3 KiB
Swift
53 lines
1.3 KiB
Swift
//
|
|
// MeshtasticSchema.swift
|
|
// Meshtastic
|
|
//
|
|
// SwiftData schema definition and migration plan for migrating from Core Data.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftData
|
|
|
|
/// All model types in the Meshtastic schema
|
|
enum MeshtasticSchema {
|
|
static var allModels: [any PersistentModel.Type] {
|
|
[
|
|
// Core entities
|
|
NodeInfoEntity.self,
|
|
UserEntity.self,
|
|
MyInfoEntity.self,
|
|
MessageEntity.self,
|
|
ChannelEntity.self,
|
|
PositionEntity.self,
|
|
WaypointEntity.self,
|
|
DeviceMetadataEntity.self,
|
|
TelemetryEntity.self,
|
|
PaxCounterEntity.self,
|
|
TraceRouteEntity.self,
|
|
TraceRouteHopEntity.self,
|
|
RouteEntity.self,
|
|
LocationEntity.self,
|
|
// Config entities
|
|
AmbientLightingConfigEntity.self,
|
|
BluetoothConfigEntity.self,
|
|
CannedMessageConfigEntity.self,
|
|
DetectionSensorConfigEntity.self,
|
|
DeviceConfigEntity.self,
|
|
DisplayConfigEntity.self,
|
|
ExternalNotificationConfigEntity.self,
|
|
LoRaConfigEntity.self,
|
|
MQTTConfigEntity.self,
|
|
NetworkConfigEntity.self,
|
|
PaxCounterConfigEntity.self,
|
|
PositionConfigEntity.self,
|
|
PowerConfigEntity.self,
|
|
RangeTestConfigEntity.self,
|
|
RTTTLConfigEntity.self,
|
|
SecurityConfigEntity.self,
|
|
SerialConfigEntity.self,
|
|
StoreForwardConfigEntity.self,
|
|
TAKConfigEntity.self,
|
|
TelemetryConfigEntity.self,
|
|
]
|
|
}
|
|
}
|