Bugfix Twitter foreign key
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
0e524b35b8
commit
d583d559d1
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ type Tweet struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
TweetID int64
|
TweetID int64
|
||||||
ProductURL string
|
ProductURL string
|
||||||
Product Product `gorm:"foreignKey:ProductURL"`
|
Product Product `gorm:"not null;references:URL"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TwitterNotifier to manage notifications to Twitter
|
// TwitterNotifier to manage notifications to Twitter
|
||||||
|
|
Reference in a new issue