21 lines
396 B
Kotlin
21 lines
396 B
Kotlin
package it.vfsfitvnm.vimusic.models
|
|
|
|
import androidx.compose.runtime.Immutable
|
|
import androidx.room.Entity
|
|
import androidx.room.Index
|
|
import androidx.room.PrimaryKey
|
|
|
|
@Immutable
|
|
@Entity(
|
|
indices = [
|
|
Index(
|
|
value = ["query"],
|
|
unique = true
|
|
)
|
|
]
|
|
)
|
|
data class SearchQuery(
|
|
@PrimaryKey(autoGenerate = true) val id: Long = 0,
|
|
val query: String
|
|
)
|