Last active
June 20, 2018 07:21
-
-
Save Cibernomadas/65a25ce00cc8a7115d0b7ce89d73d933 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
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