Explorar o código

update gorm tag for primary key on egress model

abhishek9686 hai 4 meses
pai
achega
7b7c5f4a67
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      schema/egress.go

+ 1 - 1
schema/egress.go

@@ -11,7 +11,7 @@ import (
 const egressTable = "egresses"
 
 type Egress struct {
-	ID          string            `gorm:"id,primary_key" json:"id"`
+	ID          string            `gorm:"primaryKey" json:"id"`
 	Name        string            `gorm:"name" json:"name"`
 	Network     string            `gorm:"network" json:"network"`
 	Description string            `gorm:"description" json:"description"`