Skip to content

Commit

Permalink
fix: remove unique from petid in image
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 30, 2024
1 parent a95073c commit adb8a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/model/image.model.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

type Image struct {
Base
PetID *uuid.UUID `json:"pet_id" gorm:"index:idx_name,unique"`
PetID *uuid.UUID `json:"pet_id" gorm:"index:idx_name"`
Pet *Pet `json:"pet" gorm:"foreignKey:PetID;constraint:OnUpdate:CASCADE;OnDelete:SET NULL;"`
ImageUrl string `json:"image_url" gorm:"mediumtext"`
ObjectKey string `json:"object_key" gorm:"mediumtext"`
Expand Down

0 comments on commit adb8a40

Please sign in to comment.