package query
import (
"gorm.io/gorm"
"reichard.io/imagini/internal/models"
)
func CreateUser (db *gorm.DB, user models.User) error {
err := db.Create(&user).Error
return err
}
func User (db *gorm.DB, user models.User) (models.User, error) {
var foundUser models.User
var count int64
err := db.Where(&user).First(&foundUser).Count(&count).Error
return foundUser, err
func DeleteUser (user models.User) error {
return nil
func UpdatePassword (user models.User, pw string) {