This commit is contained in:
parent
b6f12b7acf
commit
8f8ad3035a
33 changed files with 166 additions and 111 deletions
|
@ -5,9 +5,9 @@ package models
|
|||
// each describing a different aspect
|
||||
type UserToUserRelation struct {
|
||||
ID uint64 `gorm:"primarykey"`
|
||||
User User
|
||||
User User // The user X described in [RelationType]
|
||||
UserId string
|
||||
TargetUser User
|
||||
TargetUser User // The user Y described in [RelationType]
|
||||
TargetUserId string
|
||||
Relation RelationType `gorm:"type:relation_type"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue