Account preferred language

This commit is contained in:
2025-02-01 16:39:14 +08:00
parent 509390b38a
commit 820d96f6b0
3 changed files with 31 additions and 1 deletions

View File

@ -2,10 +2,11 @@ package models
import (
"fmt"
"time"
"git.solsynth.dev/hypernet/nexus/pkg/nex"
"git.solsynth.dev/hypernet/nexus/pkg/proto"
"gorm.io/datatypes"
"time"
"github.com/samber/lo"
"github.com/spf13/viper"
@ -22,6 +23,7 @@ type Account struct {
ConfirmedAt *time.Time `json:"confirmed_at"`
SuspendedAt *time.Time `json:"suspended_at"`
PermNodes datatypes.JSONMap `json:"perm_nodes"`
Language string `json:"language"`
AutomatedBy *Account `json:"automated_by" gorm:"foreignKey:AutomatedID"`
AutomatedID *uint `json:"automated_id"`