Created
June 6, 2018 21:31
-
-
Save Cibernomadas/229f9bc25bfb160db0a524d91e14048f 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" | |
type User struct { | |
gorm.Model | |
Username string `gorm:"type:varchar(32);UNIQUE"` | |
Email string `gorm:"type:varchar(256);UNIQUE"` | |
Password string `gorm:"type:varchar(128)"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment