func (c *Connection) RetrieveUserWithAuthDataByID(userID int64) (models.UserWithAuthData, error) {
	return c.retrieveUserWithAuthData(models.User{ID: userID})
}
RetrieveUserWithAuthDataByID retrieves a full user from the users table given that user's ID.
Includes data from the auth_scheme_data table (namely, scheme names)
package database
import (
	"strconv"
	"strings"
	"time"
	"github.com/theparanoids/ashirt-server/backend/models"
	sq "github.com/Masterminds/squirrel"
)
func (c *Connection) RetrieveUserByID(userID int64) (models.User, error) {
	var rtn models.User
	err := c.Get(&rtn, sq.Select("*").From("users").Where(sq.Eq{"id": userID}))
	return rtn, err
}
func (c *Connection) RetrieveUserBySlug(slug string) (models.User, error) {
	var rtn models.User
	err := c.Get(&rtn, sq.Select("*").From("users").Where(sq.Eq{"slug": slug}))
	return rtn, err
}
func (c *Connection) RetrieveUserIDBySlug(slug string) (int64, error) {
	var rtn int64
	err := c.Get(&rtn, sq.Select("id").From("users").Where(sq.Eq{"slug": slug}))
	return rtn, err
}
func (c *Connection) RetrieveUserWithAuthDataBySlug(slug string) (models.UserWithAuthData, error) {
	return c.retrieveUserWithAuthData(models.User{Slug: slug})
}