summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/user.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-26 11:28:16 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-26 11:28:16 +0200
commitddc120d5e6e0f18f235a6b5bbe5ceec86efedc41 (patch)
tree08869fd4514e7ba67c57e81e001df0e1c329414c /internal/gtsmodel/user.go
parentPg to bun (#148) (diff)
downloadgotosocial-ddc120d5e6e0f18f235a6b5bbe5ceec86efedc41.tar.xz
fix public timeline bug (#150)
Diffstat (limited to 'internal/gtsmodel/user.go')
-rw-r--r--internal/gtsmodel/user.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/internal/gtsmodel/user.go b/internal/gtsmodel/user.go
index f439be439..c36d75c8c 100644
--- a/internal/gtsmodel/user.go
+++ b/internal/gtsmodel/user.go
@@ -67,7 +67,7 @@ type User struct {
// What languages does this user not want to see?
FilteredLanguages []string
// In what timezone/locale is this user located?
- Locale string
+ Locale string `bun:",nullzero"`
// Which application id created this user? See gtsmodel.Application
CreatedByApplicationID string `bun:"type:CHAR(26),nullzero"`
CreatedByApplication *Application `bun:"rel:belongs-to"`
@@ -79,13 +79,13 @@ type User struct {
*/
// What confirmation token did we send this user/what are we expecting back?
- ConfirmationToken string
+ ConfirmationToken string `bun:",nullzero"`
// When did the user confirm their email address
ConfirmedAt time.Time `bun:",nullzero"`
// When did we send email confirmation to this user?
ConfirmationSentAt time.Time `bun:",nullzero"`
// Email address that hasn't yet been confirmed
- UnconfirmedEmail string
+ UnconfirmedEmail string `bun:",nullzero"`
/*
ACL FLAGS
@@ -105,18 +105,18 @@ type User struct {
*/
// The generated token that the user can use to reset their password
- ResetPasswordToken string
+ ResetPasswordToken string `bun:",nullzero"`
// When did we email the user their reset-password email?
ResetPasswordSentAt time.Time `bun:",nullzero"`
- EncryptedOTPSecret string
- EncryptedOTPSecretIv string
- EncryptedOTPSecretSalt string
+ EncryptedOTPSecret string `bun:",nullzero"`
+ EncryptedOTPSecretIv string `bun:",nullzero"`
+ EncryptedOTPSecretSalt string `bun:",nullzero"`
OTPRequiredForLogin bool
OTPBackupCodes []string
ConsumedTimestamp int
- RememberToken string
- SignInToken string
+ RememberToken string `bun:",nullzero"`
+ SignInToken string `bun:",nullzero"`
SignInTokenSentAt time.Time `bun:",nullzero"`
- WebauthnID string
+ WebauthnID string `bun:",nullzero"`
}