Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas

Cibernomadas/model.go

Last active Jun 20, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.