linstrom/storage-new/models/UserToUserRelation.go
mstar e1051e81ac
Some checks failed
/ docker (push) Failing after 2m59s
Fix follow activity insertion, impl undo follow
- Follow created a new id instead of using the Id of the activity for
  the db activity
2025-05-08 13:03:49 +02:00

13 lines
453 B
Go

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 {
ID uint64 `gorm:"primarykey"`
User User // The user X described in [RelationType]
UserId string
TargetUser User // The user Y described in [RelationType]
TargetUserId string
Relation string // `gorm:"type:relation_type"`
}