// CreateUser create a new user
CreateUser create a new user
// CreateUser create a new user
func (ur *UserOracleRepository) CreateUser(user models.User) error {
	user.Id = bson.NewObjectId()
	_, err := ur.Tx.Exec(INSERT_USER_ORACLE,
		user.Id.Hex(), user.Username, user.Password, user.Email, utils.BoolToInt(user.IsAdmin),
	)
	return err
}
func ( ur * UserOracleRepository ) CreateUser ( user models . User ) error { user . Id = bson . NewObjectId ( ) _ , err := ur . Tx . Exec ( INSERT_USER_ORACLE , user . Id . Hex ( ) , user . Username , user . Password , user . Email , utils . BoolToInt ( user . IsAdmin ) , ) return err }
CreateUser create a new user
CreateUser create a new user