package com.pixelized.biblib.database.data

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

@Entity(tableName = LanguageDbo.TABLE)
data class LanguageDbo(
    @PrimaryKey
    @ColumnInfo(name = ID)
    val id: Int,
    @ColumnInfo(name = NAME)
    val code: String,
) {
    companion object {
        const val TABLE = "LANGUAGE"
        const val ID = "${TABLE}_ID"
        const val NAME = "${TABLE}_NAME"
    }
}

