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