Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseStructModel ¶
type BaseStructModel struct { ID string `json:"id" gorm:"type:uuid; primary_key"` CreatedAt time.Time `json:"created_at"` UpdateAt time.Time `json:"updated_at"` DeletedAt time.Time `json:"deleted_at" sql:"index"` }
func (*BaseStructModel) BeforCreate ¶
func (base *BaseStructModel) BeforCreate(scope *gorm.Scope) error
type User ¶
type User struct { BaseStructModel Name string `json:"name" gorm:"type:varchar(255)"` Email string `json:"email" gorm:"type:varchar(255);unique_index"` Password string `json:"-" gorm:"type:varchar(255)"` TokenId string `json:"token" gorm:"type:varchar(255);unique_index"` }
func CreateNewUser ¶
func CreateNewUser() *User
Click to show internal directories.
Click to hide internal directories.