From 53e141277229c800965f10f04443609fbe0532a8 Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 5 Jul 2024 14:07:56 +0200 Subject: [PATCH] fix: model to be primaryKey Signed-off-by: SoXX --- pkg/models/postReference.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/postReference.go b/pkg/models/postReference.go index df1267c..efaed73 100644 --- a/pkg/models/postReference.go +++ b/pkg/models/postReference.go @@ -3,7 +3,7 @@ package models type PostReference struct { PostID string `gorm:"primaryKey"` SourceID string `gorm:"primaryKey"` - URL string `gorm:"not null;unique"` + URL string `gorm:"primaryKey"` PostReferenceConfig }