Remove auto increment from primary key
Because it's implicit with gorm. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
305b3eeb76
commit
5f69b8435b
1 changed files with 1 additions and 1 deletions
|
@ -46,6 +46,6 @@ func (p *Product) ToMerge(o *Product) bool {
|
|||
|
||||
// Shop represents a retailer website
|
||||
type Shop struct {
|
||||
ID uint `gorm:"primaryKey;autoIncrement"`
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Name string `gorm:"unique" json:"name"`
|
||||
}
|
||||
|
|
Reference in a new issue