fix: fix user relationship
This commit is contained in:
parent
d30d2f34b5
commit
86c80aefaa
|
@ -4,8 +4,8 @@ import "gorm.io/gorm"
|
|||
|
||||
type Pin struct {
|
||||
gorm.Model
|
||||
UploadID uint
|
||||
Upload Upload
|
||||
PinnedByUserID uint
|
||||
User User
|
||||
UploadID uint
|
||||
Upload Upload
|
||||
UserID uint
|
||||
User User
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue