skeleton/internal/database/models.go

70 lines
2.1 KiB
Go
Raw Permalink Normal View History

2020-07-19 15:52:08 +02:00
// Code generated by sqlc. DO NOT EDIT.
package database
import (
2020-07-21 22:50:11 +02:00
"database/sql"
2020-07-19 15:52:08 +02:00
"time"
)
2020-07-21 22:50:11 +02:00
type Email struct {
Address string `json:"address"`
IdentityID int64 `json:"identity_id"`
IsVerified bool `json:"is_verified"`
IsPrimary bool `json:"is_primary"`
CreatedAt time.Time `json:"created_at"`
}
type EmailConfirmation struct {
2020-07-19 15:52:08 +02:00
EmailAddress string `json:"email_address"`
Selector string `json:"selector"`
Verifier []byte `json:"verifier"`
2020-07-21 22:50:11 +02:00
ValidUntil time.Time `json:"valid_until"`
2020-07-19 15:52:08 +02:00
}
type ExternalAuth struct {
2020-07-21 22:50:11 +02:00
Name string `json:"name"`
OidcUrl sql.NullString `json:"oidc_url"`
AuthUrl string `json:"auth_url"`
TokenUrl string `json:"token_url"`
ClientKey string `json:"client_key"`
ClientSecret string `json:"client_secret"`
CreatedAt time.Time `json:"created_at"`
2020-07-19 15:52:08 +02:00
}
type ExternalUser struct {
2020-07-21 22:50:11 +02:00
IdentityID int64 `json:"identity_id"`
ExternalAuthName string `json:"external_auth_name"`
ExternalID string `json:"external_id"`
AuthToken sql.NullString `json:"auth_token"`
RefreshToken sql.NullString `json:"refresh_token"`
IdentityToken sql.NullString `json:"identity_token"`
}
type Identity struct {
ID int64 `json:"id"`
Login sql.NullString `json:"login"`
Passphrase []byte `json:"passphrase"`
TotpSecret sql.NullString `json:"totp_secret"`
IsAdmin bool `json:"is_admin"`
IsDisabled bool `json:"is_disabled"`
CreatedAt time.Time `json:"created_at"`
2020-07-19 15:52:08 +02:00
}
2020-07-21 22:50:11 +02:00
type PasswordReset struct {
IdentityID int64 `json:"identity_id"`
Selector string `json:"selector"`
Verifier []byte `json:"verifier"`
ValidUntil time.Time `json:"valid_until"`
2020-07-19 15:52:08 +02:00
}
2020-07-21 22:50:11 +02:00
type Person struct {
IdentityID int64 `json:"identity_id"`
DisplayName sql.NullString `json:"display_name"`
FirstName sql.NullString `json:"first_name"`
LastName sql.NullString `json:"last_name"`
ImageUrl sql.NullString `json:"image_url"`
Zoneinfo sql.NullString `json:"zoneinfo"`
Locale sql.NullString `json:"locale"`
2020-07-19 15:52:08 +02:00
}