Archived
1
0
Fork 0

Bugfix Twitter foreign key

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-04-07 08:46:09 +02:00
parent 0e524b35b8
commit d583d559d1
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -21,7 +21,7 @@ type Tweet struct {
gorm.Model
TweetID int64
ProductURL string
Product Product `gorm:"foreignKey:ProductURL"`
Product Product `gorm:"not null;references:URL"`
}
// TwitterNotifier to manage notifications to Twitter