/*
 * Book's Story — free and open-source Material You eBook reader.
 * Copyright (C) 2024-2026 Acclorite
 * SPDX-License-Identifier: GPL-3.0-only
 */

package org.dueattendant149.bookshelf.data.local.dto

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import org.dueattendant149.bookshelf.presentation.library.model.LibrarySortOrder

@Entity
data class CategoryEntity(
    @PrimaryKey(true) val id: Int = 0,
    val title: String,
    val order: Int,
    @ColumnInfo(defaultValue = "LAST_READ") val sortOrder: LibrarySortOrder,
    @ColumnInfo(defaultValue = "1") val sortOrderDescending: Boolean
)