59 lines
1.1 KiB
Go
59 lines
1.1 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.0
|
|
|
|
package database
|
|
|
|
import (
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type ConfirmationCode struct {
|
|
ID int64
|
|
UserID int64
|
|
Type int32
|
|
Code string
|
|
ExpiresAt pgtype.Timestamp
|
|
Used pgtype.Bool
|
|
Deleted pgtype.Bool
|
|
}
|
|
|
|
type LoginInformation struct {
|
|
ID int64
|
|
UserID int64
|
|
Email pgtype.Text
|
|
PasswordHash string
|
|
TotpEncrypted pgtype.Text
|
|
Email2faEnabled pgtype.Bool
|
|
PasswordChangeDate pgtype.Timestamp
|
|
PasswordTimesChanged pgtype.Int4
|
|
}
|
|
|
|
type Profile struct {
|
|
ID int64
|
|
UserID int64
|
|
Name string
|
|
AvatarUrl pgtype.Text
|
|
Birthday pgtype.Timestamp
|
|
}
|
|
|
|
type Session struct {
|
|
ID int64
|
|
UserID int64
|
|
Guid string
|
|
Name pgtype.Text
|
|
Platform pgtype.Text
|
|
LatestIp pgtype.Text
|
|
LoginTime pgtype.Timestamp
|
|
LastSeenDate pgtype.Timestamp
|
|
Terminated pgtype.Bool
|
|
}
|
|
|
|
type User struct {
|
|
ID int64
|
|
Username string
|
|
Verified pgtype.Bool
|
|
Banned pgtype.Bool
|
|
RegistrationDate pgtype.Timestamp
|
|
}
|