|
|
@ -15,10 +15,8 @@ import kotlinx.android.parcel.Parcelize |
|
|
|
@Entity( |
|
|
|
@Entity( |
|
|
|
tableName = "chapters", |
|
|
|
tableName = "chapters", |
|
|
|
primaryKeys = ["url", "bookUrl"], |
|
|
|
primaryKeys = ["url", "bookUrl"], |
|
|
|
indices = [(Index(value = ["bookUrl"], unique = false)), (Index( |
|
|
|
indices = [(Index(value = ["bookUrl"], unique = false)), |
|
|
|
value = ["bookUrl", "index"], |
|
|
|
(Index(value = ["bookUrl", "index"], unique = true))], |
|
|
|
unique = true |
|
|
|
|
|
|
|
))], |
|
|
|
|
|
|
|
foreignKeys = [(ForeignKey( |
|
|
|
foreignKeys = [(ForeignKey( |
|
|
|
entity = Book::class, |
|
|
|
entity = Book::class, |
|
|
|
parentColumns = ["bookUrl"], |
|
|
|
parentColumns = ["bookUrl"], |
|
|
|