Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user