Documentation
¶
Index ¶
- type Account
- type CreateUserParams
- type DBTX
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) GetUserByID(ctx context.Context, id string) (User, error)
- func (q *Queries) GetUserByPhone(ctx context.Context, phoneNumber sql.NullString) (User, error)
- func (q *Queries) UpdateUserPhone(ctx context.Context, arg UpdateUserPhoneParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type UpdateUserPhoneParams
- type User
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Provider string `json:"provider"`
ProviderAccountID sql.NullString `json:"provider_account_id"`
PasswordHash sql.NullString `json:"password_hash"`
AccessToken sql.NullString `json:"access_token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt sql.NullString `json:"expires_at"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type CreateUserParams ¶
type CreateUserParams struct {
ID string `json:"id"`
Avatar sql.NullString `json:"avatar"`
Name string `json:"name"`
Email sql.NullString `json:"email"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Disabled int64 `json:"disabled"`
PhoneNumber sql.NullString `json:"phone_number"`
PhoneVerified int64 `json:"phone_verified"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
SMS User Phone queries
func (*Queries) GetUserByID ¶
func (*Queries) GetUserByPhone ¶
func (*Queries) UpdateUserPhone ¶
func (q *Queries) UpdateUserPhone(ctx context.Context, arg UpdateUserPhoneParams) error
type Session ¶
type Session struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Token string `json:"token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt string `json:"expires_at"`
CreatedAt string `json:"created_at"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
}
type UpdateUserPhoneParams ¶
type UpdateUserPhoneParams struct {
PhoneNumber sql.NullString `json:"phone_number"`
PhoneVerified int64 `json:"phone_verified"`
UpdatedAt string `json:"updated_at"`
ID string `json:"id"`
}
type User ¶
type User struct {
ID string `json:"id"`
Avatar sql.NullString `json:"avatar"`
Name string `json:"name"`
Email sql.NullString `json:"email"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Disabled int64 `json:"disabled"`
PhoneNumber sql.NullString `json:"phone_number"`
PhoneVerified int64 `json:"phone_verified"`
}
Click to show internal directories.
Click to hide internal directories.