insert fetched conversations in db
This commit is contained in:
parent
f638fa06f2
commit
7a7b1aab32
3 changed files with 17 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue