import Foundation
import SwiftData

@Model
final class AppSettings {
    var id: UUID
    var preferredShareActionRawValue: String
    var defaultFollowUpPresetRawValue: String
    var createdAt: Date
    var updatedAt: Date

    init(
        id: UUID = UUID(),
        preferredShareActionRawValue: String = PreferredShareAction.shareSheet.rawValue,
        defaultFollowUpPresetRawValue: String = DefaultFollowUpPreset.none.rawValue,
        createdAt: Date = .now,
        updatedAt: Date = .now
    ) {
        self.id = id
        self.preferredShareActionRawValue = preferredShareActionRawValue
        self.defaultFollowUpPresetRawValue = defaultFollowUpPresetRawValue
        self.createdAt = createdAt
        self.updatedAt = updatedAt
    }
}
