parent
9a56e9834c
commit
b3a470a4b0
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,14 @@ |
|||||||
package io.legado.app.data.entities |
package io.legado.app.data.entities |
||||||
|
|
||||||
|
import androidx.room.ColumnInfo |
||||||
import androidx.room.Entity |
import androidx.room.Entity |
||||||
|
|
||||||
@Entity(tableName = "readRecord", primaryKeys = ["deviceId", "bookName"]) |
@Entity(tableName = "readRecord", primaryKeys = ["deviceId", "bookName"]) |
||||||
data class ReadRecord( |
data class ReadRecord( |
||||||
var deviceId: String = "", |
var deviceId: String = "", |
||||||
var bookName: String = "", |
var bookName: String = "", |
||||||
var readTime: Long = 0L |
@ColumnInfo(defaultValue = "0") |
||||||
|
var readTime: Long = 0L, |
||||||
|
@ColumnInfo(defaultValue = "0") |
||||||
|
var lastRead: Long = System.currentTimeMillis() |
||||||
) |
) |
Loading…
Reference in new issue