go-crm initial

This commit is contained in:
2026-04-21 17:34:58 -03:00
parent 5b8107c169
commit f8135d0e1b
24 changed files with 641 additions and 125 deletions

View File

@@ -5,8 +5,6 @@ import (
"net/http"
"time"
"go-crm/internal/db"
"github.com/go-chi/chi/v5"
"golang.org/x/crypto/bcrypt"
)
@@ -61,7 +59,7 @@ func Signup(w http.ResponseWriter, r *http.Request) {
CreatedAt: time.Now().Unix(),
}
_, err = db.DB.Exec(
_, err = DB.Exec(
"INSERT INTO accounts (email, name, password, created_at) VALUES (?, ?, ?, ?)",
account.Email, account.Name, account.Password, account.CreatedAt,
)