84 lines
1.7 KiB
Go
84 lines
1.7 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.29.0
|
|
|
|
package database
|
|
|
|
import (
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type BannedUser struct {
|
|
ID int64
|
|
UserID int64
|
|
Date pgtype.Timestamp
|
|
Reason pgtype.Text
|
|
ExpiresAt pgtype.Timestamp
|
|
BannedBy pgtype.Text
|
|
Pardoned pgtype.Bool
|
|
PardonedBy pgtype.Text
|
|
}
|
|
|
|
type ConfirmationCode struct {
|
|
ID int64
|
|
UserID int64
|
|
CodeType int32
|
|
CodeHash 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
|
|
}
|
|
|
|
type Profile struct {
|
|
ID int64
|
|
UserID int64
|
|
Name string
|
|
Bio pgtype.Text
|
|
AvatarUrl pgtype.Text
|
|
Birthday pgtype.Timestamp
|
|
Color pgtype.Text
|
|
ColorGrad pgtype.Text
|
|
}
|
|
|
|
type ProfileSetting struct {
|
|
ID int64
|
|
ProfileID int64
|
|
HideFulfilled pgtype.Bool
|
|
HideProfileDetails pgtype.Bool
|
|
HideForUnauthenticated pgtype.Bool
|
|
HideBirthday pgtype.Bool
|
|
HideDates pgtype.Bool
|
|
Captcha pgtype.Bool
|
|
FollowersOnlyInteraction pgtype.Bool
|
|
}
|
|
|
|
type Session struct {
|
|
ID int64
|
|
UserID int64
|
|
Guid pgtype.UUID
|
|
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
|
|
RegistrationDate pgtype.Timestamp
|
|
Deleted pgtype.Bool
|
|
}
|