pull/1463/head^2
parent
eb738c4e0d
commit
0ffe39a157
@ -1,16 +1,10 @@ |
||||
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,13 +1,6 @@ |
||||
package io.legado.app.data.entities |
||||
|
||||
import androidx.room.Ignore |
||||
|
||||
data class ReadRecordShow( |
||||
var bookName: String = "", |
||||
var readTime: Long = 0L |
||||
) { |
||||
|
||||
@Ignore |
||||
constructor() : this("") |
||||
|
||||
} |
||||
) |
@ -1,13 +1,7 @@ |
||||
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) { |
||||
|
||||
@Ignore |
||||
constructor() : this("") |
||||
|
||||
} |
||||
data class RssReadRecord(@PrimaryKey val record: String, val read: Boolean = true) |
Loading…
Reference in new issue