Archived
1
0
Fork 0

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:
Julien Riou 2021-04-01 17:13:17 +02:00
parent 305b3eeb76
commit 5f69b8435b
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -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"`
}