Instantly share code, notes, and snippets.

Embed
What would you like to do?
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