Update structure to domain driven architecture.

This commit is contained in:
2026-05-08 08:14:25 +02:00
parent 4f3692abd9
commit 2993cc04ef
21 changed files with 185 additions and 103 deletions
+24
View File
@@ -0,0 +1,24 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"github.com/jackc/pgx/v5/pgtype"
)
type RefreshToken struct {
ID int64 `json:"id"`
UserID int64 `json:"user_id"`
TokenHash string `json:"token_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type User struct {
ID int64 `json:"id"`
Email string `json:"email"`
Password string `json:"password"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}