You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
334 B

package model
// User user model for login
type User struct {
ID int64 `json:"id" gorm:"AUTO_INCREMENT;primary_key;"`
Name string `json:"name"`
Email string `json:"email"`
Accept int32 `json:"accept"`
Active string `json:"active"`
}
// TableName get user model name
func (u User) TableName() string {
return "user"
}