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