package dp.kotul.solrapiapplication.model.templategroup

import com.fasterxml.jackson.annotation.JsonProperty
import dp.kotul.solrapimodel.solrsearch.AssetType
import dp.kotul.solrapimodel.solrsearch.TemplateType
import java.time.Instant

data class TemplateGroupDocument(
    val id: String,
    @JsonProperty("title") val name: String?,
    @JsonProperty("org_id") val templateGroupId: Int,
    @JsonProperty("template_types_ss") val templateTypes: Set<TemplateType>?,
    @JsonProperty("template_count_i") val templateCount: Int?,
    @JsonProperty("created_date") val createdDate: Instant?,
    @JsonProperty("modified_date") val modifiedDate: Instant?
) {
    val assetType = AssetType.TEMPLATE_GROUP.value
}
