diff --git a/frontend/src/model/user.js b/frontend/src/model/user.js index dcda5e8db..35ba49a32 100644 --- a/frontend/src/model/user.js +++ b/frontend/src/model/user.js @@ -63,6 +63,7 @@ export class User extends RestModel { BirthDay: -1, UserName: "", UserSettings: "", + TermsAccepted: false, IsActive: false, IsConfirmed: false, IsArtist: false, @@ -74,7 +75,6 @@ export class User extends RestModel { RoleFriend: false, WebDAV: false, StoragePath: "", - EulaSigned: "", CreatedAt: "", UpdatedAt: "", }; diff --git a/internal/entity/person.go b/internal/entity/person.go index 160bfcc93..ce32db349 100644 --- a/internal/entity/person.go +++ b/internal/entity/person.go @@ -44,6 +44,7 @@ type Person struct { BirthDay int `json:"BirthDay" yaml:"BirthDay,omitempty"` UserName string `gorm:"size:64;" json:"UserName" yaml:"UserName,omitempty"` UserSettings string `gorm:"type:LONGTEXT;" json:"-" yaml:"-"` + TermsAccepted bool `json:"TermsAccepted" yaml:"TermsAccepted,omitempty"` IsActive bool `json:"IsActive" yaml:"IsActive,omitempty"` IsConfirmed bool `json:"IsConfirmed" yaml:"IsConfirmed,omitempty"` IsArtist bool `json:"IsArtist" yaml:"IsArtist,omitempty"` @@ -61,7 +62,6 @@ type Person struct { ApiSecret string `gorm:"column:api_secret;type:VARBINARY(128);" json:"-" yaml:"-"` LoginAttempts int `json:"-" yaml:"-"` LoginAt *time.Time `json:"-" yaml:"-"` - EulaSigned *time.Time `json:"EulaSigned" yaml:"EulaSigned,omitempty"` CreatedAt time.Time `json:"CreatedAt" yaml:"-"` UpdatedAt time.Time `json:"UpdatedAt" yaml:"-"` DeletedAt *time.Time `sql:"index" json:"DeletedAt,omitempty" yaml:"-"`