fix: fix user relationship

This commit is contained in:
Derrick Hammer 2024-01-16 00:05:25 -05:00
parent d30d2f34b5
commit 86c80aefaa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -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
}