CrmContactEntity.kt 30 lignes · 985 octets
package fr.ebii.card2vcf.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "crm_contacts")
data class CrmContactEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0,
    val fullName: String? = null,
    val firstName: String? = null,
    val lastName: String? = null,
    val company: String? = null,
    val jobTitle: String? = null,
    val phones: List<String> = emptyList(),
    val emails: List<String> = emptyList(),
    val website: String? = null,
    val address: String? = null,
    val notes: String? = null,
    val cardImagePath: String? = null,
    val profileImagePath: String? = null,
    val createdAt: Long = 0L,
    val updatedAt: Long = 0L,
    val phonesText: String = "", // space-joined, pour FTS
    val emailsText: String = "",
    val serverId: String? = null,
    val statut: String? = null,
    val etape: String? = null,
    val tags: List<String> = emptyList(),
    val entrepriseServerId: String? = null,
)