feat: update callback handler and repository for user
All checks were successful
Backend ci / build (push) Successful in 3m23s

This commit is contained in:
d3m0k1d
2026-02-10 22:45:27 +03:00
parent a58e0f4451
commit 4a5c42ca06
6 changed files with 63 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS posts(
CREATE TABLE IF NOT EXISTS users(
id INTEGER PRIMARY KEY AUTOINCREMENT,
email TEXT,
github_id TEXT,
github_id INTEGER,
github_login TEXT,
avatar_url TEXT
);

View File

@@ -25,3 +25,10 @@ type User struct {
GithubLogin string `db:"github_login"`
AvatarURL string `db:"avatar_url"`
}
type UserReg struct {
Email string `db:"email"`
GithubID string `db:"github_id"`
GithubLogin string `db:"github_login"`
AvatarURL string `db:"avatar_url"`
}