Archived
1
0
Fork 0

Add PostgreSQL support (#23)

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-04-06 10:33:24 +02:00
commit 47c8a8ace9
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
10 changed files with 216 additions and 9 deletions

View file

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