fix: model to be primaryKey

Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
SoXX 2024-07-05 14:07:56 +02:00
parent ad9124ef41
commit 53e1412772

View File

@ -3,7 +3,7 @@ package models
type PostReference struct { type PostReference struct {
PostID string `gorm:"primaryKey"` PostID string `gorm:"primaryKey"`
SourceID string `gorm:"primaryKey"` SourceID string `gorm:"primaryKey"`
URL string `gorm:"not null;unique"` URL string `gorm:"primaryKey"`
PostReferenceConfig PostReferenceConfig
} }