insert fetched conversations in db

This commit is contained in:
tibbi 2020-05-30 18:23:54 +02:00
parent f638fa06f2
commit 7a7b1aab32
3 changed files with 17 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(tableName = "conversations", indices = [(Index(value = ["id"], unique = true))])
@Entity(tableName = "conversations", indices = [(Index(value = ["system_id"], unique = true))])
data class Conversation(
@PrimaryKey(autoGenerate = true) var id: Long?,
@ColumnInfo(name = "system_id") var system_id: Int,