package com.crm.chat.data.model

import com.google.gson.annotations.SerializedName

data class User(
    @SerializedName("id") val id: Long,
    @SerializedName("firstName") val firstName: String,
    @SerializedName("lastName") val lastName: String?,
    @SerializedName("email") val email: String,
    @SerializedName("phone") val phone: String?,
    @SerializedName("avatarUrl") val avatarUrl: String?,
    @SerializedName("position") val position: String?,
    @SerializedName("role") val role: String = "USER",
    @SerializedName("isActive") val isActive: Boolean = true,
    @SerializedName("departmentId") val departmentId: Long? = null
) {
    val fullName: String
        get() = "${firstName} ${lastName ?: ""}".trim()
}
