You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
387 B

package user
import (
"gorm.io/gorm"
)
// User data model
type User struct {
gorm.Model
Username string `gorm:"unique_index:username" json:"username,omitempty"`
Firstname string `json:"firstname,omitempty"`
Lastname string `json:"lastname,omitempty"`
Email string `json:"email,omitempty"`
PasswordHash string `json:"-"`
Active bool ` json:"active"`
}