Skip to content

Commit

Permalink
[extapi] removing redundant foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
DictumMortuum committed Jan 26, 2025
1 parent 586db40 commit 57a6ebb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/servus-extapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func Version(c *gin.Context) {
rs := map[string]any{
"version": "v0.0.46",
"version": "v0.0.47",
}
c.AbortWithStatusJSON(200, rs)
}
Expand Down
1 change: 0 additions & 1 deletion pkg/model/scrapeurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

type ScrapeUrl struct {
Id int64 `gorm:"primaryKey" json:"id"`
StoreId int64 `gorm:"foreignkey" json:"store_id"`
ScrapeId int64 `gorm:"foreignkey" json:"scrape_id"`
Url string `json:"url"`
LastScraped sql.NullInt32 `json:"last_scraped"`
Expand Down

0 comments on commit 57a6ebb

Please sign in to comment.