This commit is contained in:
lbenedar
2026-03-06 17:59:31 +03:00
parent ec5ef9a5c1
commit 577f902ab3
8 changed files with 171 additions and 6 deletions

View File

@@ -18,6 +18,12 @@ type User struct {
Created time.Time
}
type UserModelInterface interface {
Insert(name, email, password string) error
Authenticate(email, password string) (int, error)
Exists(id int) (bool, error)
}
type UserModel struct {
DB *sql.DB
}