feat: registrationBegin method without email;
fix: missing sqlc query parameter name; feat: util for generating security codes; feat: enums package
This commit is contained in:
@@ -12,11 +12,11 @@ type BannedUser struct {
|
||||
ID int64
|
||||
UserID int64
|
||||
Date pgtype.Timestamp
|
||||
Reason pgtype.Text
|
||||
Reason *string
|
||||
ExpiresAt pgtype.Timestamp
|
||||
BannedBy pgtype.Text
|
||||
Pardoned pgtype.Bool
|
||||
PardonedBy pgtype.Text
|
||||
BannedBy *string
|
||||
Pardoned *bool
|
||||
PardonedBy *string
|
||||
}
|
||||
|
||||
type ConfirmationCode struct {
|
||||
@@ -25,17 +25,17 @@ type ConfirmationCode struct {
|
||||
CodeType int32
|
||||
CodeHash string
|
||||
ExpiresAt pgtype.Timestamp
|
||||
Used pgtype.Bool
|
||||
Deleted pgtype.Bool
|
||||
Used *bool
|
||||
Deleted *bool
|
||||
}
|
||||
|
||||
type LoginInformation struct {
|
||||
ID int64
|
||||
UserID int64
|
||||
Email pgtype.Text
|
||||
Email *string
|
||||
PasswordHash string
|
||||
TotpEncrypted pgtype.Text
|
||||
Email2faEnabled pgtype.Bool
|
||||
TotpEncrypted *string
|
||||
Email2faEnabled *bool
|
||||
PasswordChangeDate pgtype.Timestamp
|
||||
}
|
||||
|
||||
@@ -43,41 +43,41 @@ type Profile struct {
|
||||
ID int64
|
||||
UserID int64
|
||||
Name string
|
||||
Bio pgtype.Text
|
||||
AvatarUrl pgtype.Text
|
||||
Bio *string
|
||||
AvatarUrl *string
|
||||
Birthday pgtype.Timestamp
|
||||
Color pgtype.Text
|
||||
ColorGrad pgtype.Text
|
||||
Color *string
|
||||
ColorGrad *string
|
||||
}
|
||||
|
||||
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
|
||||
HideFulfilled *bool
|
||||
HideProfileDetails *bool
|
||||
HideForUnauthenticated *bool
|
||||
HideBirthday *bool
|
||||
HideDates *bool
|
||||
Captcha *bool
|
||||
FollowersOnlyInteraction *bool
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
ID int64
|
||||
UserID int64
|
||||
Guid pgtype.UUID
|
||||
Name pgtype.Text
|
||||
Platform pgtype.Text
|
||||
LatestIp pgtype.Text
|
||||
Name *string
|
||||
Platform *string
|
||||
LatestIp *string
|
||||
LoginTime pgtype.Timestamp
|
||||
LastSeenDate pgtype.Timestamp
|
||||
Terminated pgtype.Bool
|
||||
Terminated *bool
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID int64
|
||||
Username string
|
||||
Verified pgtype.Bool
|
||||
Verified *bool
|
||||
RegistrationDate pgtype.Timestamp
|
||||
Deleted pgtype.Bool
|
||||
Deleted *bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user