79 lines
2.7 KiB
Go
79 lines
2.7 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.0
|
|
|
|
package repository
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type ApiService struct {
|
|
ID uuid.UUID `json:"id"`
|
|
ClientID string `json:"client_id"`
|
|
ClientSecret string `json:"client_secret"`
|
|
Name string `json:"name"`
|
|
RedirectUris []string `json:"redirect_uris"`
|
|
Scopes []string `json:"scopes"`
|
|
GrantTypes []string `json:"grant_types"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
IsActive bool `json:"is_active"`
|
|
Description *string `json:"description"`
|
|
IconUrl *string `json:"icon_url"`
|
|
}
|
|
|
|
type ServiceSession struct {
|
|
ID uuid.UUID `json:"id"`
|
|
ServiceID uuid.UUID `json:"service_id"`
|
|
ClientID string `json:"client_id"`
|
|
UserID *uuid.UUID `json:"user_id"`
|
|
IssuedAt time.Time `json:"issued_at"`
|
|
ExpiresAt *time.Time `json:"expires_at"`
|
|
LastActive *time.Time `json:"last_active"`
|
|
IpAddress pgtype.Text `json:"ip_address"`
|
|
UserAgent *string `json:"user_agent"`
|
|
AccessTokenID *uuid.UUID `json:"access_token_id"`
|
|
RefreshTokenID *uuid.UUID `json:"refresh_token_id"`
|
|
IsActive bool `json:"is_active"`
|
|
RevokedAt *time.Time `json:"revoked_at"`
|
|
Scope *string `json:"scope"`
|
|
Claims []byte `json:"claims"`
|
|
}
|
|
|
|
type User struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Email string `json:"email"`
|
|
FullName string `json:"full_name"`
|
|
PasswordHash string `json:"password_hash"`
|
|
IsAdmin bool `json:"is_admin"`
|
|
CreatedAt *time.Time `json:"created_at"`
|
|
UpdatedAt *time.Time `json:"updated_at"`
|
|
LastLogin *time.Time `json:"last_login"`
|
|
PhoneNumber *string `json:"phone_number"`
|
|
ProfilePicture *string `json:"profile_picture"`
|
|
CreatedBy *uuid.UUID `json:"created_by"`
|
|
EmailVerified bool `json:"email_verified"`
|
|
AvatarVerified bool `json:"avatar_verified"`
|
|
Verified bool `json:"verified"`
|
|
}
|
|
|
|
type UserSession struct {
|
|
ID uuid.UUID `json:"id"`
|
|
UserID uuid.UUID `json:"user_id"`
|
|
SessionType string `json:"session_type"`
|
|
IssuedAt time.Time `json:"issued_at"`
|
|
ExpiresAt *time.Time `json:"expires_at"`
|
|
LastActive *time.Time `json:"last_active"`
|
|
IpAddress pgtype.Text `json:"ip_address"`
|
|
UserAgent *string `json:"user_agent"`
|
|
AccessTokenID *uuid.UUID `json:"access_token_id"`
|
|
RefreshTokenID *uuid.UUID `json:"refresh_token_id"`
|
|
DeviceInfo []byte `json:"device_info"`
|
|
IsActive bool `json:"is_active"`
|
|
RevokedAt *time.Time `json:"revoked_at"`
|
|
}
|