init code

This commit is contained in:
Dmitry Chumak
2025-05-27 19:22:55 +05:00
parent 2b39909fd1
commit b47e0d3445
11 changed files with 529 additions and 0 deletions

25
db/models.go Normal file
View File

@@ -0,0 +1,25 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package db
import (
"time"
"github.com/google/uuid"
)
type Session struct {
ID uuid.UUID
UserID int32
ExpiresAt time.Time
CreatedAt time.Time
}
type User struct {
ID int32
Username string
Password string
CreatedAt time.Time
}