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