Created
June 29, 2018 17:37
-
-
Save Cibernomadas/552ad691754b85ccf5fba4df626e87fd 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 | |
UserSession | |
Username string `gorm:"type:varchar(32);UNIQUE"` | |
Email string `gorm:"type:varchar(256);UNIQUE"` | |
Password string `gorm:"type:varchar(128)"` | |
AboutMe string `gorm:"type:varchar(512)"` | |
LastSeen string `gorm:"type:varchar(20)"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment