package com.aletheia.app.model

data class ReadingBookmark(
    val id: Long = 0,
    val bookId: Long,
    val cfi: String?,
    val progress: Double,
    val currentPage: Int,
    val totalPages: Int,
    val chapterTitle: String?,
    val label: String,
    val createdAt: Long = System.currentTimeMillis()
) {
    val progressPercent: Int
        get() = (progress * 100).toInt().coerceIn(0, 100)
}
