mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 18:10:07 +01:00
Added serializable to the Note entity
This commit is contained in:
parent
6b44179ae0
commit
7b9c05f32d
@ -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?,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user