mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add comments for creating entity relationships
This commit is contained in:
parent
7bb05d0a80
commit
6a6ad34f4d
2 changed files with 4 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ data class Highlight(
|
|||
val suffix: String?,
|
||||
val updatedAt: LocalDate?
|
||||
|
||||
// has many LinkedItems and LinkedItemLabels
|
||||
// has a UserProfile
|
||||
// has many LinkedItemLabels (inverse: labels have many highlights)
|
||||
// has one linkedItem (inverse: linkedItem has many highlights
|
||||
// has a UserProfile (no inverse)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ data class LinkedItem(
|
|||
|
||||
// hasMany highlights
|
||||
// hasMany labels
|
||||
// has Many recommendations
|
||||
// has Many recommendations (rec has one linkedItem)
|
||||
) {
|
||||
fun publisherDisplayName(): String? {
|
||||
return publisherURLString?.toUri()?.host
|
||||
|
|
|
|||
Loading…
Reference in a new issue