Skip to content

Commit

Permalink
remove unique constraint from investor and location name
Browse files Browse the repository at this point in the history
  • Loading branch information
szarbartosz committed Nov 12, 2024
1 parent 55bcf28 commit bb28d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/investorModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Investor struct {
AddressID uint `json:"addressId"`
Address Address `gorm:"foreignKey:AddressID" json:"address"`

Name string `gorm:"unique" json:"name"`
Name string `json:"name"`
ContactPerson string `json:"contactPerson"`
Email string `json:"email"`
Phone string `json:"phone"`
Expand Down
2 changes: 1 addition & 1 deletion models/locationModel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Location struct {
Application Application `json:"application"`
Notes []Note `json:"notes"`

Name string `gorm:"unique" json:"name"`
Name string `json:"name"`
IssueDate *time.Time `json:"issueDate"`
InspectionDate *time.Time `json:"inspectionDate"`
DecisionDate *time.Time `json:"decisionDate"`
Expand Down

0 comments on commit bb28d41

Please sign in to comment.