diff --git a/internal/models/models.go b/internal/models/models.go index 8548480..eef03be 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -35,7 +35,7 @@ type Publisher struct { ID string `json:"id" gorm:"primaryKey"` Email *string `json:"email,omitempty"` Description string `json:"description" gorm:"uniqueIndex;not null"` - CodeHosting []CodeHosting `json:"codeHosting" gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;unique"` + CodeHosting []CodeHosting `json:"codeHosting" gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;unique"` Active *bool `json:"active" gorm:"default:true;not null"` AlternativeID *string `json:"alternativeId,omitempty" gorm:"uniqueIndex"` CreatedAt time.Time `json:"createdAt" gorm:"index"`