add comments for creating entity relationships

This commit is contained in:
Satindar Dhillon 2023-01-03 11:04:40 -08:00
parent 7bb05d0a80
commit 6a6ad34f4d
2 changed files with 4 additions and 3 deletions

View file

@ -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)
)

View file

@ -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