|
|
@ -11,7 +11,7 @@ import kotlinx.android.parcel.Parcelize |
|
|
|
@Entity( |
|
|
|
@Entity( |
|
|
|
tableName = "searchBooks", |
|
|
|
tableName = "searchBooks", |
|
|
|
indices = [(Index(value = ["bookUrl"], unique = true)), |
|
|
|
indices = [(Index(value = ["bookUrl"], unique = true)), |
|
|
|
(Index(value = ["bookSourceUrl"], unique = false))], |
|
|
|
(Index(value = ["origin"], unique = false))], |
|
|
|
foreignKeys = [(ForeignKey( |
|
|
|
foreignKeys = [(ForeignKey( |
|
|
|
entity = BookSource::class, |
|
|
|
entity = BookSource::class, |
|
|
|
parentColumns = ["bookSourceUrl"], |
|
|
|
parentColumns = ["bookSourceUrl"], |
|
|
|