Add PostgreSQL support (#23)
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
b6f23d4bd5
commit
47c8a8ace9
10 changed files with 216 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ type TelegramMessage struct {
|
|||
gorm.Model
|
||||
MessageID int `gorm:"not null;unique"`
|
||||
ProductURL string
|
||||
Product Product `gorm:"foreignKey:ProductURL"`
|
||||
Product Product `gorm:"not null;references:URL"`
|
||||
}
|
||||
|
||||
// TelegramNotifier to manage notifications to Twitter
|
||||
|
|
|
|||
Reference in a new issue