creating a database table for MessageAttachments too
This commit is contained in:
parent
0f33d3677b
commit
b955678e90
5 changed files with 50 additions and 2 deletions
|
|
@ -1,3 +1,11 @@
|
|||
package com.simplemobiletools.smsmessenger.models
|
||||
|
||||
data class MessageAttachment(val id: Long, var text: String, var attachments: ArrayList<Attachment>)
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
|
||||
@Entity(tableName = "message_attachments")
|
||||
data class MessageAttachment(
|
||||
@PrimaryKey val id: Long,
|
||||
@ColumnInfo(name = "text") var text: String,
|
||||
@ColumnInfo(name = "attachments") var attachments: ArrayList<Attachment>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue