NoteProjetEntity.swift 20 lignes · 772 octets
import Foundation

/// Room entity `notes_projet` (mirror de l'entit\u{e9} Android `NoteProjetEntity`).
struct NoteProjetEntity: Equatable {
    var localId: Int64 = 0
    var serverId: String? = nil
    var projetServerId: String = ""
    var titre: String = ""
    /// Corps markdown de la note (JSON : `contenu`).
    var texte: String = ""
    /// Chemin local du fichier audio, conserv\u{e9} lors des mises \u{e0} jour serveur.
    var audioPath: String? = nil
    /// Statut de transcription : `en_attente`, `terminee`, `echec`, ou nil.
    var transcriptionStatut: String? = nil
    var transcriptionErreur: String? = nil
    var auteur: String = ""
    var createdAt: Int64 = 0
    /// nil sur les notes jamais mises \u{e0} jour.
    var updatedAt: Int64? = nil
}