ProjetEntity.swift 20 lignes · 654 octets
import Foundation

/// Room entity `projets`.
struct ProjetEntity: Equatable {
    var localId: Int64 = 0
    var serverId: String? = nil
    var nom: String = ""
    var description: String = ""
    var workflowServerId: String = ""
    var membresJson: String = "[]"
    var creePar: String = ""
    /// Le projet utilise-t-il dates, durées et diagramme de Gantt ?
    var planification: Bool = false
    /// Date cible du projet, format ISO `AAAA-MM-JJ`.
    var echeance: String? = nil
    /// Rythme de travail : 5 = lun-ven, 6 = lun-sam, 7 = tous les jours.
    var joursOuvres: Int = 7
    var createdAt: Int64 = 0
    var updatedAt: Int64 = 0
}