Added serializable to the Note entity

This commit is contained in:
merkost 2023-07-07 23:15:40 +10:00
parent 6b44179ae0
commit 7b9c05f32d

View File

@ -9,8 +9,10 @@ import androidx.room.PrimaryKey
import com.simplemobiletools.commons.extensions.isBiometricIdAvailable import com.simplemobiletools.commons.extensions.isBiometricIdAvailable
import com.simplemobiletools.commons.helpers.PROTECTION_FINGERPRINT import com.simplemobiletools.commons.helpers.PROTECTION_FINGERPRINT
import com.simplemobiletools.commons.helpers.PROTECTION_NONE import com.simplemobiletools.commons.helpers.PROTECTION_NONE
import kotlinx.serialization.Serializable
import java.io.File import java.io.File
@Serializable
@Entity(tableName = "notes", indices = [(Index(value = ["id"], unique = true))]) @Entity(tableName = "notes", indices = [(Index(value = ["id"], unique = true))])
data class Note( data class Note(
@PrimaryKey(autoGenerate = true) var id: Long?, @PrimaryKey(autoGenerate = true) var id: Long?,