func DeleteUser(id uint) error {
	user := User{}
	user.ID = id
	return DB.RWdb.Unscoped().Delete(&user).Error
}
DeleteUser deletes the user by the user identifier.
package model
import (
	"golang.org/x/crypto/bcrypt"
	"gopkg.in/go-playground/validator.v9"
)
type User struct {
	BasicModel
	UserName     string `json:"username" gorm:"column:username;not null;unique"`
	Email        string `json:"email" gorm:"column:email;not null;unique"`
	PasswordHash string `json:"password" gorm:"column:passwordhash;not null"`
	Confirm      bool   `json:"confirm" gorm:"column:confirm;default:false"`
	Role         string `json:"role" gorm:"column:role;default:'user'"`
}
func (c *User) TableName() string {
	return "users"
}
func (u *User) Create() error {
	return DB.RWdb.Create(&u).Error
}