Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ca29a55908
|
|
@ -2,10 +2,11 @@ package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
ID uint `gorm:"primarykey column:id"`
|
gorm.Model
|
||||||
Name string `gorm:"column:name"`
|
Name string `gorm:"column:name"`
|
||||||
Age int `gorm:"column:age"`
|
Age int `gorm:"column:age"`
|
||||||
Email string `gorm:"column:email"`
|
Email string `gorm:"column:email"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue