pull/1434/head
parent
829695e398
commit
7775ff9d56
@ -1,10 +1,16 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import androidx.room.Entity |
||||
import androidx.room.Ignore |
||||
|
||||
@Entity(tableName = "readRecord", primaryKeys = ["deviceId", "bookName"]) |
||||
data class ReadRecord( |
||||
var deviceId: String = "", |
||||
var bookName: String = "", |
||||
var readTime: Long = 0L |
||||
) |
||||
) { |
||||
|
||||
@Ignore |
||||
constructor() : this(deviceId = "") |
||||
|
||||
} |
@ -1,6 +1,13 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import androidx.room.Ignore |
||||
|
||||
data class ReadRecordShow( |
||||
var bookName: String = "", |
||||
var readTime: Long = 0L |
||||
) |
||||
) { |
||||
|
||||
@Ignore |
||||
constructor() : this("") |
||||
|
||||
} |
@ -1,7 +1,13 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import androidx.room.Entity |
||||
import androidx.room.Ignore |
||||
import androidx.room.PrimaryKey |
||||
|
||||
@Entity(tableName = "rssReadRecords") |
||||
data class RssReadRecord(@PrimaryKey val record: String, val read: Boolean = true) |
||||
data class RssReadRecord(@PrimaryKey val record: String, val read: Boolean = true) { |
||||
|
||||
@Ignore |
||||
constructor() : this("") |
||||
|
||||
} |
Loading…
Reference in new issue