Move account relations into separate table
This commit is contained in:
parent
c9985ba48a
commit
5546d31e5d
6 changed files with 28 additions and 20 deletions
12
storage/accountRelations.go
Normal file
12
storage/accountRelations.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package storage
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type AccountRelation struct {
|
||||
gorm.Model
|
||||
FromId string
|
||||
ToId string
|
||||
Accepted bool
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue