This commit is contained in:
parent
8d4ba2ecae
commit
67b507f4bd
25 changed files with 74 additions and 27 deletions
12
storage-new/models/UserToUserRelation.go
Normal file
12
storage-new/models/UserToUserRelation.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package models
|
||||
|
||||
// A relation between two accounts
|
||||
// There may be multiple relations from an account X to an account Y,
|
||||
// each describing a different aspect
|
||||
type UserToUserRelation struct {
|
||||
User User
|
||||
UserId string
|
||||
TargetUser User
|
||||
TargetUserId string
|
||||
Relation RelationType `gorm:"type:relation_type"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue