Person: Add EulaSigned date field
Users might need to accept terms & conditions when using external services / APIs. Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
9950bc9975
commit
48ec25bcba
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,6 @@ export class User extends RestModel {
|
||||||
BirthDay: -1,
|
BirthDay: -1,
|
||||||
UserName: "",
|
UserName: "",
|
||||||
UserSettings: "",
|
UserSettings: "",
|
||||||
TermsAccepted: false,
|
|
||||||
IsActive: false,
|
IsActive: false,
|
||||||
IsConfirmed: false,
|
IsConfirmed: false,
|
||||||
IsArtist: false,
|
IsArtist: false,
|
||||||
|
@ -75,6 +74,7 @@ export class User extends RestModel {
|
||||||
RoleFriend: false,
|
RoleFriend: false,
|
||||||
WebDAV: false,
|
WebDAV: false,
|
||||||
StoragePath: "",
|
StoragePath: "",
|
||||||
|
EulaSigned: "",
|
||||||
CreatedAt: "",
|
CreatedAt: "",
|
||||||
UpdatedAt: "",
|
UpdatedAt: "",
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,7 +44,6 @@ type Person struct {
|
||||||
BirthDay int `json:"BirthDay" yaml:"BirthDay,omitempty"`
|
BirthDay int `json:"BirthDay" yaml:"BirthDay,omitempty"`
|
||||||
UserName string `gorm:"size:64;" json:"UserName" yaml:"UserName,omitempty"`
|
UserName string `gorm:"size:64;" json:"UserName" yaml:"UserName,omitempty"`
|
||||||
UserSettings string `gorm:"type:LONGTEXT;" json:"-" yaml:"-"`
|
UserSettings string `gorm:"type:LONGTEXT;" json:"-" yaml:"-"`
|
||||||
TermsAccepted bool `json:"TermsAccepted" yaml:"TermsAccepted,omitempty"`
|
|
||||||
IsActive bool `json:"IsActive" yaml:"IsActive,omitempty"`
|
IsActive bool `json:"IsActive" yaml:"IsActive,omitempty"`
|
||||||
IsConfirmed bool `json:"IsConfirmed" yaml:"IsConfirmed,omitempty"`
|
IsConfirmed bool `json:"IsConfirmed" yaml:"IsConfirmed,omitempty"`
|
||||||
IsArtist bool `json:"IsArtist" yaml:"IsArtist,omitempty"`
|
IsArtist bool `json:"IsArtist" yaml:"IsArtist,omitempty"`
|
||||||
|
@ -62,6 +61,7 @@ type Person struct {
|
||||||
ApiSecret string `gorm:"column:api_secret;type:VARBINARY(128);" json:"-" yaml:"-"`
|
ApiSecret string `gorm:"column:api_secret;type:VARBINARY(128);" json:"-" yaml:"-"`
|
||||||
LoginAttempts int `json:"-" yaml:"-"`
|
LoginAttempts int `json:"-" yaml:"-"`
|
||||||
LoginAt *time.Time `json:"-" yaml:"-"`
|
LoginAt *time.Time `json:"-" yaml:"-"`
|
||||||
|
EulaSigned *time.Time `json:"EulaSigned" yaml:"EulaSigned,omitempty"`
|
||||||
CreatedAt time.Time `json:"CreatedAt" yaml:"-"`
|
CreatedAt time.Time `json:"CreatedAt" yaml:"-"`
|
||||||
UpdatedAt time.Time `json:"UpdatedAt" yaml:"-"`
|
UpdatedAt time.Time `json:"UpdatedAt" yaml:"-"`
|
||||||
DeletedAt *time.Time `sql:"index" json:"DeletedAt,omitempty" yaml:"-"`
|
DeletedAt *time.Time `sql:"index" json:"DeletedAt,omitempty" yaml:"-"`
|
||||||
|
|
Loading…
Reference in a new issue