Last active
May 2, 2019 06:58
-
-
Save linux08/5731faa76582ad9fe42a0f08ce0a7ab9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import ( | |
"github.com/jinzhu/gorm" | |
) | |
//User struct declaration | |
type User struct { | |
gorm.Model | |
Name string | |
Email string `gorm:"type:varchar(100);unique_index"` | |
Gender string `json:"Gender"` | |
Password string `json:"Password"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment