diff --git a/dao/user.go b/dao/user.go index a085829..2786d3d 100644 --- a/dao/user.go +++ b/dao/user.go @@ -2,10 +2,11 @@ package dao import ( "fmt" + "gorm.io/gorm" ) type User struct { - ID uint `gorm:"primarykey column:id"` + gorm.Model Name string `gorm:"column:name"` Age int `gorm:"column:age"` Email string `gorm:"column:email"`