pull/1463/head^2
parent
eb738c4e0d
commit
0ffe39a157
@ -1,16 +1,10 @@ |
|||||||
package io.legado.app.data.entities |
package io.legado.app.data.entities |
||||||
|
|
||||||
import androidx.room.Entity |
import androidx.room.Entity |
||||||
import androidx.room.Ignore |
|
||||||
|
|
||||||
@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 |
var readTime: Long = 0L |
||||||
) { |
) |
||||||
|
|
||||||
@Ignore |
|
||||||
constructor() : this(deviceId = "") |
|
||||||
|
|
||||||
} |
|
@ -1,13 +1,6 @@ |
|||||||
package io.legado.app.data.entities |
package io.legado.app.data.entities |
||||||
|
|
||||||
import androidx.room.Ignore |
|
||||||
|
|
||||||
data class ReadRecordShow( |
data class ReadRecordShow( |
||||||
var bookName: String = "", |
var bookName: String = "", |
||||||
var readTime: Long = 0L |
var readTime: Long = 0L |
||||||
) { |
) |
||||||
|
|
||||||
@Ignore |
|
||||||
constructor() : this("") |
|
||||||
|
|
||||||
} |
|
@ -1,13 +1,7 @@ |
|||||||
package io.legado.app.data.entities |
package io.legado.app.data.entities |
||||||
|
|
||||||
import androidx.room.Entity |
import androidx.room.Entity |
||||||
import androidx.room.Ignore |
|
||||||
import androidx.room.PrimaryKey |
import androidx.room.PrimaryKey |
||||||
|
|
||||||
@Entity(tableName = "rssReadRecords") |
@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