add oidc sqlite

This commit is contained in:
2025-02-13 04:51:17 -06:00
parent 4e61d7714e
commit 28bfbb84ad
7 changed files with 490 additions and 6 deletions

View File

@@ -6,8 +6,43 @@ package sqlc
import (
"database/sql"
"time"
)
type AuthorizationCode struct {
ID int64
Code string
CodeChallenge string
CodeChallengeMethod string
UserID string
ClientID string
Scope sql.NullString
RedirectUri string
CreatedAt sql.NullTime
ExpiresAt time.Time
UsedAt sql.NullTime
}
type Client struct {
ID string
Name string
Owner string
CreatedAt sql.NullTime
}
type ClientApproval struct {
ID int64
UserID string
ClientID string
}
type ClientRedirect struct {
ID int64
Uri string
ClientID string
CreatedAt sql.NullTime
}
type Customer struct {
ID string
MaxNkodeLen int64
@@ -27,6 +62,17 @@ type SvgIcon struct {
Svg string
}
type Token struct {
ID int64
TokenType string
TokenValue string
UserID string
ClientID string
Scope sql.NullString
CreatedAt sql.NullTime
ExpiresAt time.Time
}
type User struct {
ID string
Email string